# Compiling a few codes to one script! can it be done?

**URL:** <https://forum.kirupa.com/t/compiling-a-few-codes-to-one-script-can-it-be-done/200557>\
**Category:** Uncategorized\
**Created:** [September 13, 2006, 9:39am UTC](https://forum.kirupa.com/t/compiling-a-few-codes-to-one-script-can-it-be-done/200557 "2006-09-13T09:39:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dondeigo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dondeigo/32/2806_2.png) [@dondeigo](https://forum.kirupa.com/u/dondeigo)\
**Post date:** [September 13, 2006, 9:39am UTC](https://forum.kirupa.com/t/compiling-a-few-codes-to-one-script-can-it-be-done/200557/1 "2006-09-13T09:39:47Z")

</div>

[SIZE=3]Hello all you almighty flashers[/SIZE]  
I need some help putting together some code.

I am making an “animation” to explain the server functions, to our clients,  
how to download, file types, icons etc…

I have a cursor, the animation, moving around clicking stuff and info boxes appearing,  
it works first time I play the animation but second time, it F\*\*\*\* up so some help would be greatly appreciated

It is don whit mctween2, slides and scale and so on.  
basically i use thees scripts

//Frame1  
setProperty(“pdftxt\_mc”, \_alpha, “0”);  
pdftxt\_mc.scaleTo(0, 1, “easeOutExpo”);  
pil\_mc.slideTo(16, 160, 0.9);  
stop();  
var nDelayID:Number = setInterval(this, “pause”, 3000);  
// where 4000 is 4000 milliseconds  
function pause():Void {  
clearInterval(nDelayID);  
nextFrame();  
}

//Frame2  
pdftxt\_mc.scaleTo(100, 0.7, “easeInOutBack”);  
pdftxt\_mc.alphaTo(100, 0.7, “easeInOutBack”);  
nextFrame();

//Frame3  
stop();  
var nDelayID:Number = setInterval(this, “pause”, 7000);  
// where 4000 is 4000 milliseconds  
function pause():Void {  
clearInterval(nDelayID);  
nextFrame();  
}

//frame4  
stop();  
pdftxt\_mc.scaleTo(0, 0.7, “easeInOutBack”);  
pdftxt\_mc.alphaTo(0, 0.7, “easeInOutBack”);  
pil\_mc.slideTo(135, 160, 0.5);  
var nDelayID:Number = setInterval(this, “pause”, 500);  
// where 4000 is 4000 milliseconds  
function pause():Void {  
clearInterval(nDelayID);  
nextFrame();  
}

And it is used over 25 frames  
Ill attach the fla, it might be easier, but as i said any help wuld be greatly appreciated
