[thelist] How to pass variables between 2 SWF movies

Guy Bowden guy at holler.co.uk
Wed Jan 7 05:56:00 CST 2004


You can do it by either using the _global namespace. Or by referencing where
the separate swfs are loaded in:

i.e. if you are loading them into levels :

_level1.somevar = _level2.somevar;

Or if you're loading them into movieclips:

Swf1_mc.somevar = swf2_mc.somevar;



Using the global namespage:

(in swf1)

_global.somevar = blah;

(in swf2)

this.somevar = _global.somevar;

Hope that helps.

Cheers

Guy



-----Original Message-----
From: thelist-bounces-guy=holler.co.uk at lists.evolt.org
[mailto:thelist-bounces-guy=holler.co.uk at lists.evolt.org] On Behalf Of Arief
Zaki
Sent: 07 January 2004 11:45
To: thelist at lists.evolt.org
Subject: [thelist] How to pass variables between 2 SWF movies


Dear Guys,

Hope u all could help me on this.
I'm having trouble in passing variables from one *.swf movie to 
another*.swf movie in one MAIN movie. How do I pass my variables across 
those movies so that I could let VAR1 which was created in 1st movie 
will be accessible in 2nd movie ?

I'm not using any webservices or files on localdisk to keep the 
variables. all inside the flash itself.
And I'm using ActionScript1.0 with Flash MX. Hope someone could shed 
some light on me :)

Thank you in advance
AZJ


-- 
* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 




More information about the thelist mailing list