Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 08-15-2002, 12:43 PM   #1
abudavul
Registered User
 
Join Date: Aug 2002
Location: germany
Posts: 4
Question 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.
abudavul is offline   Reply With Quote
Old 08-16-2002, 08:22 AM   #2
vosgien
member
 
Join Date: Dec 2001
Location: France
Posts: 923
Default

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
vosgien is offline   Reply With Quote
Old 08-16-2002, 09:57 AM   #3
abudavul
Registered User
 
Join Date: Aug 2002
Location: germany
Posts: 4
Default

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
abudavul is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:30 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.