Assume for a minute that I know there are several ways to get around what I’m about to ask you to do, and there is a method to my madness.
Let’s imagine that I have a movieclip on my stage with an instance name of “Dog”. It is just a plain ordinary MovieClip object from the Library. It has several frame labels such as “Bark”, “WagTail”, etc.
Then let’s say I have a class called “Animal” which extends the MovieClip type. It is just a separate .as file that is not associated with the main Flash file or the “Animal” class.
I’m going to instantiate this class within my document class, and then add it to the display list. At this stage it is an empty MovieClip.
Now, here is the Challenge.
Without using a class file, or linkage in the flash ide, how can I composite these two objects together so that:
A. I maintain all of the class properties and objects of the “Animal” class
B. The “Dog” MovieClip will become the root MovieClip (and not a child) of the “Animal” class (thereby replacing the graphics that weren’t there to begin with)
Does this make sense?
Is there some way this can be accomplished?