PDA

View Full Version : callinng and passing information to other applications


LeonJebb
02-03-2005, 06:47 AM
Hi all, I got a problem, how can i pass information from my flash application to another application. How may i pass the information to it using actionscript?

scenerio:
I have an application call, birthday.swf which captures text input of user. When i click send,then it should send the text to another application call birthday.swf. How do i invoke the birthday.swf and send the input text to it. Then it open up birthday.swf and preview the text input in birthday.swf. Not sure if is tough to code it ? :rolleyes: thanks~!!

issamneo
02-03-2005, 09:53 AM
what i know is sending vars from flash to php then for any thing that you want
but in your case i think you can use flash only such as having a main swf that contains the 2 swf and declare global vars

ain
02-03-2005, 09:59 AM
If you've got these SWF files running on the same client you should probably refer to the ActionScript's LocalConnection class.

A paste from the reference:

// Code in the receiving movie
receiving_lc = new LocalConnection();
receiving_lc.methodToExecute = function(param1, param2)
{
// Code to be executed
}
receiving_lc.connect("lc_name");
// Code in the sending movie
sending_lc = new LocalConnection();
sending_lc.send("lc_name", "methodToExecute", dataItem1, dataItem2)