Hi all
i've got a simple animated menu which slides up on rollover and down on rollout but i am having some trouble controlling the movies.
When i want one of the buttons to start in the up state and be controlled by the other buttons (the button that needs to stay up needs to roll down and return on roll out).
menu example
the code in the first frame of the movie is:
ok this works ------ but i cann't get the button to go through its tween while incrementing the movie by one using the menuRun variable as its position, any suggestions as to how to do this would be great.Code:onLoadFrame(_root.ovenNav.play()); var menupage = ovenNav; var menuRun = 1; var menuloc = true; function menuin() { while (menuRun<=60) { trace("menuRun ="+menuRun); trace("menuloc ="+menuloc); menuloc == true; _root.menupage.gotoAndPlay(menuRun); menuRun = menuRun+1; } _root.menupage.stop(); menuloc == false; } function menuout() { while (menuRun>=0) { trace("menuRun ="+menuRun); trace("menuloc ="+menuloc); menuloc == true; _root.menupage.gotoAndPlay(menuRun); menuRun = menuRun-1; } _root.menupage.stop(); menuloc == false; }
the other odd thing is that 'menuloc' is always true?
hope you guys can help