Im very new to flash and am currently working on a Tower defense game in AS3.
What I’m trying to do - remove/delete a movie-clip once a button has been pressed (Selling a tower)
My problem - Is that from my limited knowledge none of the following work.
removeChild(myTower);
Turret.removeChild(myTower); - (trying to reference the class of the turret so that it can access the movieclip)
Turret.parent.removeChild(Turret)
Turret(root).removeChild(Turret)
This function is placed in the first frame of the source.fla where all main functions are.
The turret has its own class defining its properties and such.
Basically what i want to happen is when the button function is activated to remove the movieclip Turret and the class from running.
Any pointers would be helpful as I’m very new to AS3.
Thanks all.