swf to swf communication

This is a discussion on swf to swf communication within the Macromedia Flash forums in Adobe Tools category; Hello, I have one swf which contains a user entry form. When submitted, I want to send the user submission result variables to a second SWF on my server. This second SWF is not actually open until the first SWF calls and loads it. Can I achieve this ? Thanks for any advice....

Go Back   Application Development Forum > Adobe Tools > Macromedia Flash

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 10-13-2008, 11:17 PM
phil1943
Guest
 
Default swf to swf communication

Hello, I have one swf which contains a user entry form.
When submitted, I want to send the user submission result variables to a
second SWF on my server. This second SWF is not actually open until the first
SWF calls and loads it.
Can I achieve this ?

Thanks for any advice.

Reply With Quote
  #2  
Old 10-14-2008, 12:05 AM
David Stiller
Guest
 
Default Re: swf to swf communication

phil1943,

> When submitted, I want to send ... variables to a
> second SWF on my server. This second SWF is
> not actually open until the first SWF calls and loads it.


For something like that, you can use the SharedObject class (available
as early as Flash Player 6, AS1), which effectively gives you the Flash
equivalent of a browser cookie. You could also send your variables to the
server via some sort of middleware by way of the LoadVars class, then
retrieve those values in the second SWF via the same class.


David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."


Reply With Quote
  #3  
Old 10-14-2008, 03:39 AM
dustinsmith08
Guest
 
Default Re: swf to swf communication

would it work to load the second swf into the first and then pass the variables
to it from the first swf?

if so use Object(NameOfSecondSWF).FuncunctionYouWnatToCall(V ars)

if however your trying to do all the work on the server you may need to use a
PHP file which can do all kinds of cool stuff like calculate data and send it
back, communicate with a database and even make new files on your server passed
to it from the SWF.

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 12:45 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.