View Full Version : variables from one swf to another
larsKonrad
04-19-2002, 09:36 AM
How is it possible to use a variable from one swf. in another swf.? What is the scope for these variables?
thanks!
Milan
04-19-2002, 10:32 AM
In the first swf declare them,
In the second swf load variable - put "use global"
Play a bit with them, and in 10min you'll solve the problem!
farafiro
04-21-2002, 01:35 PM
Originally posted by Milan
In the second swf load variable - put "use global"
I'm sorry, what does this mean -use global-??
or do u mean globalToLocal??? also how
Milan
04-22-2002, 02:21 PM
Sorry,
My mistake, I was working all day and my head is full!
Try next
Milan
04-22-2002, 02:21 PM
This should work:
loadVariablesNum("first.swf", 0, "GET");
first - name of the movie where the variables are
0 - level
Get - send using GET
farafiro
04-22-2002, 02:53 PM
well, Milan I also think thin won't work also
the swf should b loaded to the one that will get a variable from and the can import/export variables (pass them) by useing levels
for ex.
_root.textBox=_level1.mc1.inpuText
Milan
04-22-2002, 03:42 PM
I've made the two files
- first.swf
- second.swf
First - has variable declaration and on the last frame (any) load movie - second.swf
Second - has buttons and if statements, and load var...
download the file, and publish both...
You'll see what happens!
One more thing - You need MX to run them.
Think this will solve all your problems!
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.