# Need a tweak in my reverse .swf AS

**URL:** https://forum.kirupa.com/t/need-a-tweak-in-my-reverse-swf-as/186877
**Category:** flash
**Created:** [April 25, 2006, 5:49am UTC](https://forum.kirupa.com/t/need-a-tweak-in-my-reverse-swf-as/186877 "2006-04-25T05:49:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Esoteric](https://avatars.discourse-cdn.com/v4/letter/e/a4c791/32.png) [@Esoteric](https://forum.kirupa.com/u/Esoteric)
#### Post date: [April 25, 2006, 5:49am UTC](https://forum.kirupa.com/t/need-a-tweak-in-my-reverse-swf-as/186877/1 "2006-04-25T05:49:49Z")

</div>

In my main.swf I have buttons that load seperate .swf’s into an empty movie clip with the instance name “intros”. The code reverses the frames of whatever .swf is loaded into the “intros” empty movie clip. I just need to tweak it so when it reverses it skips the first frame of the .swf. I have a preloader on the first frame and the preloader flashes for a second before loading the next .swf into the “intros” empty movie clip. Any help would be great, and if you need more of an explanation just let me know.

ActionScript Code:  
[FONT=Courier New][LEFT][COLOR=#000000]on (release) {  
clearInterval(\_root.intros.rid);  
\_root.intros.rid = setInterval(reverseIt,10,\_root.intros);  
function reverseIt(someMC){  
someMC.prevFrame();  
updateAfterEvent();  
if(someMC.\_currentframe==1){  
if(someMC == Number(someMC)){  
loadMovieNum(“introass.swf”,someMC);  
} else {  
someMC.loadMovie(“introass.swf”);  
}  
clearInterval(someMC.rid);  
}  
}  
}[/COLOR]  
[/LEFT]  
[/FONT]

---

<div class="post-metadata">

### Author: ![Esoteric](https://avatars.discourse-cdn.com/v4/letter/e/a4c791/32.png) [@Esoteric](https://forum.kirupa.com/u/Esoteric)
#### Post date: [April 25, 2006, 6:29am UTC](https://forum.kirupa.com/t/need-a-tweak-in-my-reverse-swf-as/186877/2 "2006-04-25T06:29:13Z")

</div>

[COLOR=black][FONT=Verdana]I have this code to load a separate preloader.swf for anything loaded into the main.swf. Which means I wouldn’t have to worry about the first frame at all… but how do I change the above button AS ^ so I can incorporate the below button AS?[/FONT][/COLOR]

[COLOR=black][FONT=Verdana]THANKS! [/FONT][/COLOR]

Main.swf ActionScript Code:

[FONT=Courier New][LEFT][COLOR=#000000]**var my\_lv = new LoadVars();**  
**var mcLoader = new MovieClipLoader();**  
**var loadListener = new Object();**  
**mcLoader.addListener(loadListener);**[/COLOR]  
[COLOR=#000000]**loadListener.onLoadProgress = function (target\_mc, loadedBytes, totalBytes)**  
**{**  
**\_level50.\_visible = true;**  
**var \_l1 = Math.floor(loadedBytes / totalBytes \* 100);**  
**\_level50.preloader.gotoAndStop(\_l1);**  
**};**  
**loadListener.onLoadComplete = function (target\_mc)**  
**{**  
**\_level50.\_visible = false;**  
**};**  
**mcLoader.loadClip(“preloader.swf”, 50);**[/COLOR]

[/LEFT]

[/FONT]Button ActionScript Code:

[FONT=Courier New][LEFT][COLOR=#000000]**on (release){**[/COLOR]  
[COLOR=#000000]**mcLoader.loadClip(“whatever.swf”, “intros”);**[/COLOR]  
[COLOR=#000000] **}** [/COLOR]

[/LEFT]

[/FONT]
