swf-swf communication
I can see the data being sent between the two documents.
Problem is, I do not understand how to read in the data and call on a function higher up in my document.
I need to read in the string and run a function called arrowForwardOnRelease.
Here is the code thus far
Flash File (Sender)
======================================
//assign a function to the button's event method
userMessage.text = "arrowonrelease"
buttonInstance.onRelease = function()
{
//create the LocalConnection
outgoing_lc = new LocalConnection();
//send the contents of the text field
//using the send() method
outgoing_lc.send("lc_name", "methodToExecute", userMessage.text);
};
Flash File (Reciever)
======================================
//create LocalConnection
incoming_lc = new LocalConnection();
//define function to execute when a connection is made
incoming_lc.methodToExecute = function (param)
{
sentMessage.text = param;
}
//make the connection
incoming_lc.connect("lc_name");
This sends the text over the connection no problem, and the reciever recieves it and outputs it, thing is I need it to then be read in and trigger a function.
Any help is much appreciated.
Thank you
--J
