1 person found this helpful
what code do you use to instantiate your class?
var object:ClassName= new ClassName(); << imports
addChild(object); << that initiates it so i can see the mc's
then removeChild(object) will remove that class. but if you added objects to any displayobjectcontainer, other than "this", you'll need to explicitly remove those objects using a method in your class. create one if one doesn't exist.
or, even easier, only add objects to "this" in your class. but you should terminate all loops and streams when your class object is removed from the stage and no longer needs to execute code. use the removedfromstage event. to trigger.
Oh ok i will go make a method then
I did try removeChild(); but i didn't do it in the right place
Thankyou for your help.