I'm building a Flash CS4 application (AS3) and I can't keep all my movie clips in the library because there will be hundreds of them, and new ones will be added all the time.
Two parts to the question:
How can I externally load in a movieclip to use during run time? After loading I still need to be able to manipulate it as if I created a new instance of it from the internal library.
How can I load a movieclip based on its name?
Thanks!
To load a movie clip at runtime use the Loader and URLRequest classes. Listen to the Event.Complete
to know when it is ready to be used.
To instanciate a Class at runtime use the function getDefinitionByName or getDefinition
Look at a complete example (mixing the different concept) in the current doc