[FMX] Variables and Navigation

BTW-- Assume I know absolutely nothing about ActionScript and you’ll be halfway there… :wink: JT

Hey all-- getting somewhat frustrated with this problem in MX and hope someone can help.
The plan:
A mask slides across the screen to give the impression of three buttons sliding in. The animation stops. The user clicks on one of the three buttons and the animation resumes while the buttons slide off of the screen. After the buttons slide off of the screen, the animation should go to the appropriate frame for whichever button was hit.

The details:
The buttons have the following script-
on (release) {
set (nav, 2); <-- Button A sets nav to 1, button B to 2, etc.
gotoandPlay(“Mask_Exit”); <–Mask_Exit is the frame for the
} animation resuming.

The last from of Mask_Exit has the following script-
stop ():
if (nav=3) {
gotoandPlay(“Section 3”);
}
if (nav=2) {
gotoandPlay(“Section 2”);
}
if (nav=1) {
getURL(“javascript:Launch(‘http://www.externalpage.com’)”);
}

<— The Javascript refers to a script to open a window of specific size. The script works fine in separate testing.

The problems:
No matter what button is clicked, the animation resumes (Mask_Exit plays to the end). The animation goes straight to Section 2 (chronologically the next frame in the animation) AND launches the external page.

Any suggestions?
Thanks all–
Jeff

do you have stop(); where you want it to stop?
if uses two == or you set the variable instead of checking it’s value!
so if(var==1){do something;}

can you post the fla to recode…?
tip: buy Moock 's book!

Well, I moved the stop() command and fixed the lack of ='s. That said, it still doesn’t go. I tried to attach the FLA, but the board says it’s too big even after I zipped it. Any help?
Thanks–
Jeff