Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / May 2005



Tip: Looking for answers? Try searching our database.

Controlling flash from other flash.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
neondust - 17 May 2005 15:39 GMT
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);
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.