skimmmer
April 6th, 2008, 01:56 AM
Hi,
I made a class (which extends sprite) that has a game I created in it, I add it using:
gameS:Game = new Game(this.stage,mp3,id);But when I use:
delete this;
this.parent.removeChild(this);(inside the class), it is not visible but functions inside are still operating. This is a public class with public vars. Am I using the wrong type for the class or am I deleting and removing the class/sprite incorrectly?
Thanks!
I made a class (which extends sprite) that has a game I created in it, I add it using:
gameS:Game = new Game(this.stage,mp3,id);But when I use:
delete this;
this.parent.removeChild(this);(inside the class), it is not visible but functions inside are still operating. This is a public class with public vars. Am I using the wrong type for the class or am I deleting and removing the class/sprite incorrectly?
Thanks!