Tricky OOP project
I'm having a difficult time with a current project I'm working on. I started AS3 at the end of summer and found the transition from AS2 somewhat challenging. I'm fairly comfortable with the language now (to the extent that I require) when it comes to "non-OOP," but I'm trying to switch over to OOP, both for learning and to help the client. A bit of explanation will be needed, though, so bear with me.
I've created a transition effect that requires multiple instances of a movie clip (which I'll refer to as the containers) containing two overlayed images (contents). Each container is on a separate layer of the timeline, and each has as a separate masking layer unique to it. With some actionscript, I then animate various things in various ways to create the desired effect. Now, by doing it "my" way, I would have to create and name a separate SWF for each image. This, however, doesn't allow the client to make any adjustments, so I'm hoping to be able to fragment my code into classes which can then be manipulated dynamically (say, from XML data). My problem is that I have no idea what I'm doing in an OOP sense. I don't want to give away my "secret" animation, but I don't think anyone will be able to help without some better explanation, so here's a breakdown of my timeline (from top layer to bottom):
All masks are equal dimension (1/5th the width of the stage) and placed dynamically based on the width/height of the stage (and remain in place). The containers are all identical (same contents), are placed at differing x coordinates (based on the position of their mask and the stage dimensions) and then animated into place. I like the resulting effect, but my client wants to be able to change photos and the sections to which they apply, which cannot be done with the current method. The following are links to a few of the current SWFs that I load into the main movie (and yes, I realize my "secret" will probably be obvious, but I'd still like to effect this using OOP).
vinylwines . com / cooper / backgrounds / contact.swf
vinylwines . com / cooper / backgrounds / events.swf
vinylwines . com / cooper / backgrounds / wines.swf
Any assistance would be much appreciated. Thanks in advance!