PDA

View Full Version : [fmx] movie reverse, then load help



bleutuna
June 15th, 2003, 10:00 PM
http://www.bleutuna.com/thirteen/thirteen.swf

Watch the movie above. The files for the movie - .fla, .swf - are attached.

I want it to work to where when you mouse over another menu item on the left, the menu that opens up on the right will essentially reverse back, and then load the next menu item which you just rolled over.

The problem is, I can get to do either/or. But not both.

It either switches menus, or it will reverse, depending on the code. But I can't think of a way to make it do both.

Can someone pwease hewp me :)

:pope:

bleutuna
June 16th, 2003, 01:18 AM
So this is what I ended up using. It's an interval, which I really didn't want to go with, but it works.

What I wanted to do was something that made sure the other menu was done, rather than a simple timer, as the timer may be too short/long depending on how long the menu is.

on(rollOver) {
function collateralLoad() {
loadMovie("identity.swf","_root.secondHolder");
clearInterval(delay);
}
_root.initialmenu.arrow.endX = -34;
_root.initialmenu.arrow.endY = 63.5;

if(_global.secondMenu == 1) {
_root.secondHolder.secondmenu.gotoAndPlay(56);
}

if((_global.secondMenu == 1) || (_global.secondMenu == 0)) {
delay = setInterval(collateralLoad, 1250);
stop();
}else{
loadMovie("identity.swf","_root.secondHolder");
}
}

:pope: