hello Charles, In respect to AS 3, I agree with you: create specialized classes is against OOP, and the idea of having different movieclips being loaded for each button is good.
The good thing of the old solution (the same used by gugga ff) is that having all the animations of a button in a single timeline seems a bit easier to visualize (for a designer) than to split the animations along three of more movieclips. And all that I needed was a single class for all the buttons. thank you, andrei On 3/12/07, Charles Parcell <[EMAIL PROTECTED]> wrote:
Sounds like you are negating the whole purpose of classes. How about a little reengineering of the buttons. Build your single class and have multiple instances of the button on screen. Part of the class would be to load in the proper animation MC for display. Thus you have the single class that is applied to all buttons and each button has an independent animation associated with it. Or if you wanted, you could do as you listed in your first e-mail and extend a single base class and make specialized classes for each button. But again, that is sort of defeating the purpose of classes and OOP. Charles P. On 3/12/07, Andrei Thomaz <[EMAIL PROTECTED]> wrote: > > hello Janis, > > the problem is that I don't want several instances of same symbol in the > stage. Imagine a menu for the sections of a site: you have a button, with > some animations, for each section. So, I cann't use several instances of a > same symbol. What I want, and what it was done with AS 2, was to have a > symbol for each button, and associate the symbols with the same class, > what, > I am afraid, it is not possible in AS 3. > > What I am doing is similar with the buttons in Gugga framework (you can > read > about the buttons in GuggaFF here, http://www.gugga.com/flashblog/) > > > []'s > andrei >
_______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com