PDA

View Full Version : passing variables between Flash files?


MaryAnneL
02-13-2007, 05:20 PM
Hello again! :eek:

I'm working on a project that needs to pass variables between two Flash SWF files. The files have to work both locally (CD) and from a web server.

When passing variables both locally and over the web, should I try to use localConnection or perhaps SharedObjects?

I've never used either method so any help appreciated!

Thanks! :)

CyanBlue
02-13-2007, 05:22 PM
That'd be LocalConnection object... ;)

MaryAnneL
02-13-2007, 05:27 PM
Thanks CyanBlue! So LocalConnection is the way to go for both CD and web delivery. Cool!

I built some code using localConnection that sends variables one way (file A to file B). The only problem is having file A wait for a reply back from file B. This could be seconds or hours. How is this done?

Thanks!

MA

CyanBlue
02-13-2007, 06:29 PM
Um... I don't really understand the question... What's your code look like??? :(

MaryAnneL
02-13-2007, 06:47 PM
Thanks CyanBlue! My files are attached. :eek:

MA

CyanBlue
02-13-2007, 07:05 PM
Sorry... Don't have F8 at work... :(

MaryAnneL
02-15-2007, 10:57 AM
CyanBlue, I can save them as Flash MX 2004 format if that helps and repost them.

Thanks!

MA

MaryAnneL
02-15-2007, 11:49 AM
Here are the files in MX2004 format. :D

Thanks!!

MA