PDA

View Full Version : create variable across movies actionscript 3


dev_mohamed
12-18-2008, 12:15 PM
Dear all,

i want to create variable across movies actionscript 3

i have main movie loader.swf i want to create a variable myvar in this
movie and set initial value to it
myvar =0

i have another movie new_movie.swf i want use the var in main movie myvar
and access it's value

Ex.
loader.swf:
var go_now:int = 0;

new_movie.swf
what sjould i write her

how can i do this

rawmantick
12-18-2008, 12:35 PM
I'm not sure, but you could use unconstant static public variables of some shared class.