Is it possible to attach a class to a movieClip instance at
runtime? I have a movieClip instance on stage but am not sure what
class I want it to be until the movie is running. I am aware that
Object.registerClass can affect dynamically created clips, but what
about ones put on stage at design time.
One way that I have done this is to have each class
associated with a movieclip in the library. Then once I determine
what is needed, I use attachMovieClip() method to bring in the
desired movieclip with the correct version of the class I need.
I'm fairly sure that attaching a class to the _root movie is
not doable with the current verison of Flash or ActionScript (not
sure about AS3). As with the other option, you might want to try
using the prototype method to add the additional functionality to
the movieclip as you need it.