Hi
i am currently creating an application where i load different movies into a main application but instead of using the unloadMovie function on a button what i was hoping to do was have code saying to unloadMovie if not on current frame so the user wouldn’t have to unload the movie it would be done automatically
this is the code i am using:
this.createEmptyMovieClip("img_mc",2);
img_mc.loadMovie("game.swf");
img_mc._lockroot = true;
this.img_mc._x = 50;
this.img_mc._y = 50;
this.img_mc._xscale = 75; //Percent of original
this.img_mc._yscale = 75; //Percent of original
img_mc.onEnterFrame = function(){
if (_currentframe != 47) {
img_mc.unloadMovie();
delete this.onEnterFrame;
trace ("deleted onEnterFrame");
}
};
What is happening is that the game is displaying but not unloading any suggestions !!!