1 Replies - 1362 Views - Last Post: 24 September 2009 - 05:03 AM

#1 reyco1  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 2
  • View blog
  • Posts: 43
  • Joined: 20-March 05

SWF talks to another SWF

Posted 27 March 2005 - 04:27 AM

Description: Instructions are in the scriptMake one swf file communicate with another swf file
//*********place this code in frame 1 of the sending movie*********
//*****************************************************************
//assign a function to the button's event method 
buttonInstance.onRelease = function() {
     //create the LocalConnection by first 
     //setting it equal to a variable 
     outgoing_lc = new LocalConnection();
     //send the contents of the text field 
     //using the send() method
     outgoing_lc.send("lc_name", "methodToExecute", userMessage.text);
     //delete the local connection now that the 
     //message has been sent
     delete outgoing_lc;
};

//*********place this code in frame 1 of the recieveing movie*********
//********************************************************************
//create the LocalConnection by first 
//setting it equal to a variable
incoming_lc = new LocalConnection();
//define the function that will execute when a connection is made
incoming_lc.methodToExecute = function(param) {
     //set the contents of the text field
     //equal to the parameter received from the sending movie 
     sentMessage.text = param;
};
//make the connection 
incoming_lc.connect("lc_name");



Is This A Good Question/Topic? 0
  • +

Replies To: SWF talks to another SWF

#2 ktrrzn  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 11-September 09

Re: SWF talks to another SWF

Posted 24 September 2009 - 05:03 AM

Thanks
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1