# A little help on the practical use of this script

**URL:** <https://forum.kirupa.com/t/a-little-help-on-the-practical-use-of-this-script/32124>\
**Category:** Uncategorized\
**Created:** [October 1, 2003, 8:13pm UTC](https://forum.kirupa.com/t/a-little-help-on-the-practical-use-of-this-script/32124 "2003-10-01T20:13:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dynastyjp](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@dynastyjp](https://forum.kirupa.com/u/dynastyjp)\
**Post date:** [October 1, 2003, 8:13pm UTC](https://forum.kirupa.com/t/a-little-help-on-the-practical-use-of-this-script/32124/1 "2003-10-01T20:13:08Z")

</div>

(MX)  
on (release) {  
\_root.gotoAndPlay (“home”);

function doneDelay(){  
\_root.contents.loadMovie(“lance.swf”);  
clearInterval(delay);  
}  
delay = setInterval(doneDelay, 1000);  
}

The above script works great, but how exactly do I apply this to all of my buttons so that each one functions in the same purpose. Example: I have button 1…obviously theres no need for the script as long as this button is clicked at first…but obviously most users don’t go in order. So how is that I can apply this script to have my movie function the way I want it to. (fear’s he’s not making sense). What Im trying to do is have a transition for certain content to come in and a transition for the content to leave when a different is button is clicked…which loads an external .swf. Which is what the code above is for. But obviously there’s a problem with this code if the user goes out ot order. And you can’t apply more than one loadmovie function per button. So what is a trick to get around this problem…I dont think I’m making sense but I’m trying. Thanks in advance.
