Hi i was wondering if anyone can help since ive been scratching my head a lot lately trying to figure out how to do the following:
I have a series of movie clips all controlled by a controller, inside the movie clips are several submenus, when i place the cursor in front of the first movie clip it swings into view revealing the submenus while the others hide behind it. But when i try to do the same with the other envelopes (movie clips that contain the sub menus are like envelopes swinging back and forth when cursor hovers them) for some reason it fails. I have placed on and off positions for each of the envelopes. The actionscript used is
on (rollOver)
{
…/:selected = “1”;
if (eval("…/:submenue") == 1)
{
stop ();
}
else
{
gotoAndPlay(“on”);
} // end else if
…/:submenue = flase;
}
on (rollOut)
{
…/:selected = “100”;
gotoAndPlay(“off”);
}
[COLOR=red]the code for the controller is [/COLOR]
i = “1”;
do
{
if (i >= eval("…/:selected"))
{
set(“target” add i, “…/placeroff” add i);
} // end if
if (i < eval("…/:selected") && eval("…/:selected") < 100)
{
set(“target” add i, “…/placeron” add i);
} // end if
if (eval("…/:selected") == 100)
{
set(“target” add i, “…/placeridle” add i);
} // end if
i = i + 1;
} while (i <= 6)
i = “1”;
do
{
set(“deltax” add i, getProperty(eval(“target” add i), _x) - (getProperty("…/plate" add i, _x)));
setProperty("…/plate" add i, _x, getProperty("…/plate" add i, _x) + (eval(“deltax” add i) + 84) / 2);
i = i + 1;
} while (i <= 6)
can anyone help? please reply