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!
garlandpool
01-10-2010, 08:57 PM
Okay, when you say "publish" do you mean like CONTROL+ENTER or upload to my website or what? I mean, I downloaded the thing and I can't figure out what is probably the really dumb part. I need someone to tell me to do the obvious or something, like, "Okay, go to the folder on your hard drive where the swf's are and open both of them. Then go to the second one and click on the buttons..." Or something equally simple, but not that, because I already tried it. Do I open them both from within the flash program? When I do that, when I open the first one it gives me "Error opening URL" etc. If I open the second and then open the first right on top of it, it still gives me that message. What am I not getting?
I really appreciate those of you who are willing to help a dud like me out.
Thanks,
Fred
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.