local connection/menu -sub menu 2
well, it seems I'm not the only one with that localConnection problem 'cause there is already the same question there.
I want to trigger a submenu-movie from another main-menu-movie. in the receive movie the first frame is clear with only the actionscript and stop action, the 5th frame contains the submenu.
ok here my code:
"send.swf": (button-action)
on (release) {
transmit=new LocalConnection();
transmit.send("code","doit",button1);
//code=name of the connection
//doit= the function
//button1 =instance-name of the button
}
"receive.swf" (first frame /action layer)
stop();
receive= new LocalConnection();
receive.doit=gotoAndStop(5);{
_root.doit;
}
receive.connect("code");
My problem:
even if played alone the "receive"- movie doesn't stop at the first frame although the stop() action.
of course it stops there when I delete the rest of the code
(for both the movies there is not "output-report".)
I spend several hours trying different things; reread Jesse's tut and Macromedia's information abt localConnection but I can't find the bug in my script.
Thanks a lot for help:
Last edited by abudavul; 08-15-2002 at 12:48 PM.
|