i want to change 2 movieclip on 1 frame, first movieclip is for intro when app is started, and the second movieclip is continue of first. here my code :
var sunR1:classSunRays1; //movieclip export
var sunR2:classSunRays2; //movieclip export
function intro():void{
sunR1 = new clsSunRays1();
sunR1.x = mapW/2;
sunR1.y = mapH/2;
sunR1.width += 200;
sunR1.height += 200;
stage.addChild(sunR1);
if (sunR1.currentFrame == sunR1.totalFrames){
stage.removeChild(sunR1);
sunR2 = new clsSunRays2();
sunR2.x = mapW/2;
sunR2.y = mapH/2;
sunR1.width += 200;
sunR1.height += 200;
stage.addChild(sunR2);
}
}
You can try something like: