PDA

View Full Version : local connection/menu -sub menu 2


abudavul
08-15-2002, 01:43 PM
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:

vosgien
08-16-2002, 09:22 AM
Hi,
I am not sure I fully understand what you are trying to achieve here, however one thing I noticed is if your button has an instance name, this implies that the button is inside an mc, if this is so your button code should be preceded by _root. code

Don't know if that will help any, hope it does

Vosgien

abudavul
08-16-2002, 10:57 AM
Thank you, I changed the code but unfortunately it didn't solve my problem(s).
Maybe my question was nit precise enough -
I'am looking for the reason why my "receive" movie ignores the "stop" action in the first frame even if it is played as a "stand alone movie".

Have a nice day