# Need help with navigation

**URL:** <https://forum.kirupa.com/t/need-help-with-navigation/213176>\
**Category:** Uncategorized\
**Created:** [January 17, 2007, 2:12pm UTC](https://forum.kirupa.com/t/need-help-with-navigation/213176 "2007-01-17T14:12:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![laudato](https://avatars.discourse-cdn.com/v4/letter/l/96bed5/32.png) [@laudato](https://forum.kirupa.com/u/laudato)\
**Post date:** [January 17, 2007, 2:12pm UTC](https://forum.kirupa.com/t/need-help-with-navigation/213176/1 "2007-01-17T14:12:13Z")

</div>

hello

i have problem with my buttons. they have animation for rollover/out. it works fine, but when i try to use it with frames on which i applied some transition animation, it doesn’t work.  
this is my code(1) for button animation:

stop();  
this.onEnterFrame = function(){  
if(rewind == true){  
prevFrame();  
}  
}  
this.onRollOver = function(){  
rewind = false;  
play();  
}  
this.onRollOut = function(){  
rewind = true;  
}

and this is the code(2) for frame transition:

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

the problem is when i don’t use button animation, the transition works, but if i want to use them both, it doesn’t.

i uploaded the fla and 2program.zip which containes movie my flash loads. try movie with and without code(1) which is inside “button program” movie on action layer.
