I have 2 movies I want to use together 1.swf is the main movie, 2.swf is the one to be loaded. here is the set up:
in 1.swf I have 2 buttons, on each is the loadMovie() code for on(release).
I have an emptyMC named "empty" on the stage of 1.swf.
In 2.swf 1st frame, actions layer I have a var and an if/else statement.
2.swf is a 3 frame movie, frame 1 is blank, frame 2 and 3 have different animations. The var on frame one directs which frame to go to:
in 1.swf the buttons have:Code:stop(); var getMe:Number = 0; if (_root.getMe == 1) { _root.gotoAndStop(2); } else if (_root.getMe == 2) { _root.gotoAndStop(3); } else { trace("staying here"); }
All works great, yes? Problem arises in that I want to pass a variable (getMe) to 2.swf from the button press.Code:on (release){ loadMovie("2.swf", _root.empty); }
According to the help sections I can use variable with GET or POST:
loadMovie( " url ", level / target [ , variables ])
So what can I do to make it so a button in 1.swf uses these [ variables ] to pass a 1 or 2 to the getMe?
Something like:
Code:on (release){ loadMovie("2.swf", _root.empty,[getMe==1]); }I can't get anything to work, and I can't find an answer anywhere...
~MoN




I can't get anything to work, and I can't find an answer anywhere...
~MoN
Reply With Quote