Hi,
How can I controll flash2 from flash1, they are both on the same HTML page,
but they are not conected in any way only with HTML. This should work in both
MSIE and Mozilla FF browser.
best regards, neondust
Duane Robertson - 18 May 2005 23:18 GMT
Maybe you could use fscommand to call a function that sets a state in your page, then call another function to check the state every so many milliseconds from the other flash.
Kiriran - 19 May 2005 11:56 GMT
search for "LocalConnection" in the flash help. there is a good example
// Code in the receiving SWF file
this.createTextField("result_txt", 1, 10, 10, 100, 22);
result_txt.border = true;
var receiving_lc:LocalConnection = new LocalConnection();
receiving_lc.methodToExecute = function(param1:Number, param2:Number) {
result_txt.text = param1+param2;
};
receiving_lc.connect("lc_name");
// Code in the sending SWF file
var sending_lc:LocalConnection = new LocalConnection();
sending_lc.send("lc_name", "methodToExecute", 5, 7);