# Preloader

**URL:** <https://forum.kirupa.com/t/preloader/74836>\
**Category:** Uncategorized\
**Created:** [January 3, 2005, 5:42am UTC](https://forum.kirupa.com/t/preloader/74836 "2005-01-03T05:42:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![agungfrans](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@agungfrans](https://forum.kirupa.com/u/agungfrans)\
**Post date:** [January 3, 2005, 5:42am UTC](https://forum.kirupa.com/t/preloader/74836/1 "2005-01-03T05:42:40Z")

</div>

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]
