[Flash] Eternal MC and classes
- Started
- Last post
- 3 Responses
- Fariska
I have a bunch of MC which i'm loading via XML. And i'd like to instantiate them as istances of a class i've buid (which extends MC and add some movement stuff)
Any suggestion?
- restlessdesign0
If they're in your library, right-click on them and go to Linkage. Check off Export for Actionscript if you haven't already, and where it says "Actionscript 2.0 class", enter the name of your class.
Hope that helps!
- restlessdesign0
If you're going to be making the movie clips using create movieclip, what you can do then is make sure your class takes a movieclip parameter and then create a class object that will do all of your custom methods to your newly created clip
- Fariska0
I'm importing externally 8-9 mc, reading them form an external XML.
Tough i can copypaste the methods i've written on each of them, i was wondering if it is possible to attach dinamically a class to them (and having the code just in one place)