Hello, everyone. I need some help. I have a stage that’s filled with dynamically generated isometric objects [ in the shape of a smiley, placed according to an array ], and when i click a button, i would like the stage to be cleared, then another frame with another isometric code and another array to load.
The problem i am facing now is that the items positionned from the smiley are still on the stage if the next array is smaller than the previous one. Do you guys/gals know of any way i could clear the stage before going on the next frame? Currenlty, i tried unloadMovieNum(depth) in between with this code:
n = 50;
onEnterFrame = function(){
trace(n);
n--;
unloadMovieNum(n);
if ( n<=0){
nextFrame();
} else { stop(); }
}
What happens is that it clears the stage, but doesnt load anything in teh following frame.
I hope that i was clear. If any confusion prevails, please answer the questions that linger in your minds.
Thank you in advance.