# How to "mix" those two action scripts....?

**URL:** <https://forum.kirupa.com/t/how-to-mix-those-two-action-scripts/227391>\
**Category:** Uncategorized\
**Created:** [May 29, 2007, 8:44pm UTC](https://forum.kirupa.com/t/how-to-mix-those-two-action-scripts/227391 "2007-05-29T20:44:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![djbosk](https://avatars.discourse-cdn.com/v4/letter/d/8491ac/32.png) [@djbosk](https://forum.kirupa.com/u/djbosk)\
**Post date:** [May 29, 2007, 8:44pm UTC](https://forum.kirupa.com/t/how-to-mix-those-two-action-scripts/227391/1 "2007-05-29T20:44:25Z")

</div>

Hi,  
I found this tutorial ([kirupa.com - Transitions Between External SWFs](http://www.kirupa.com/developer/mx2004/transitions2.htm)) on [kirupa.com](http://kirupa.com) and want to use that technique on my site.  
The problem is that I’m using animated buttons, which of course are using action script as well.  
Question is:

How to mix my script:

> 

on (rollOver) {  
mouse\_over\_single = true;  
}  
on (rollOut) {  
mouse\_over\_single = fstartlse;  
} on (release){  
\_root.contents2.loadMovie(“single.swf”);  
\_root.contents.loadMovie(“blank.swf”);  
}  
with the one shown in the tutorial:

> 

on (release)  
{  
if (\_root.currMovie == undefined)  
{ \_root.currMovie = “main”;  
container.loadMovie(“main.swf”);  
} else if (\_root.currMovie != “main”)  
{ if (container.\_currentframe \>= container.midframe)  
{ \_root.currMovie = “main”;  
container.play();  
}  
}  
}

- 

Link to my \*.fla menu file: [http://djbosk.risp.pl/problem/main\_menu.fla](http://djbosk.risp.pl/problem/main_menu.fla)

- Has NE1 got NE ideas how to mix them to make my menu work correctly…?  
Thx in advance  
Bosk
