whoknows361
Technical User
Hey all.
Here's my goal? I want, when a user clicks on a certain button, that a new browser window opens containing an .swf movie, and that .swf movie loads certain (pics, text, etc) dependent on the variables sent from the original flash movie.
Here's what I've tried so far:
on sending .swf:
and on receiving swf:
Doesn't seem to work - in fact, I'm not sure if I should be using this format, or something like the loadVars.
And if I use the LoadVars - I know how to send the variables I want to the php script - but then how do I get the php script to: 1) open the new browser window with my swf in it 2) send the varialbes to this new .swf movie 3) and how do I get my newly opened .swf movie to load these variables into the individual mc's I want them to.
I hope this makes sense
Jonathan
Here's my goal? I want, when a user clicks on a certain button, that a new browser window opens containing an .swf movie, and that .swf movie loads certain (pics, text, etc) dependent on the variables sent from the original flash movie.
Here's what I've tried so far:
on sending .swf:
Code:
target_mc.onPress = function() {
getURL("matchdisplay.htm", "_blank");
}
target_mc.onRelease = function() {
sending_lc = new LocalConnection();
sending_lc.send("lc_name", "methodToExecute", match2bigpic[_root.itemchoicenumber]);
}
and on receiving swf:
Code:
receiving_lc = new LocalConnection();
receiving_lc.methodToExecute = function(bigpic){
trace(bigpic);
}
receiving_lc.connect("lc_name");
Doesn't seem to work - in fact, I'm not sure if I should be using this format, or something like the loadVars.
And if I use the LoadVars - I know how to send the variables I want to the php script - but then how do I get the php script to: 1) open the new browser window with my swf in it 2) send the varialbes to this new .swf movie 3) and how do I get my newly opened .swf movie to load these variables into the individual mc's I want them to.
I hope this makes sense
Jonathan