I have problem with action script in flash MX. I try to make preloader for my sliding menu.
Ok, I put my sliding menu in scene2 and my preloader in scene1. The preloader goes fine except the images are not in order again.
I add this code onframe (scene1) :
[color=darkorange]ifFrameLoaded(“scene2”,1) {
nextScene();
}[/color]
And here is the code for sliding menu (I add on movie clip):
[color=darkorange]onClipEvent(load) {
startX=this._x;
duplicateMovieClip(this.menu1,“menu2”,2);
this.menu2._x=this.menu1._x-1570.8;
speed=12;
}
onClipEvent (enterFrame) {
this._x=this._x+speed;
if(this._x>=1260) {
this._x=startx;
}
}
[color=black]Anybody can help me…[/color]
[/color]