Wrox Home  
Search P2P Archive for: Go

  Return to Index  

flash_programming thread: passing variables


Message #1 by "marc cardenas" <marclena@h...> on Mon, 24 Feb 2003 13:11:18
Yes... But that still depends on IF loadMovieNum supports the passing of 
querystring variables in that manner. It may or may not.

-----Original Message-----
From: marc cardenas [mailto:marclena@h...]
Sent: Monday, February 24, 2003 10:20 AM
To: Flash Programming
Subject: [flash_programming] RE: passing variables


So I should be able to get the values like that:
_root.a

Thanks
> Any variable passed to a movie in the querystring format will be =3D
available at the movie's root.

Thus this call:

"xxx.swf?a=3D3D1&b=3D3D2"

Will create 2 variables in the root of "xxx.swf", one named "a" and the 
=3D
other named "b". "a" will have a value of 1 and "b" will have a value of 
=3D
2.



-----Original Message-----
From: marc cardenas [mailto:marclena@h...]
Sent: Monday, February 24, 2003 9:49 AM
To: Flash Programming
Subject: [flash_programming] RE: passing variables


and how can I read the values from the other movie?
Thanks
> You might try passing them in a querystring... Instead of calling 
=3D3D
"xxx.swf", you call "xxx.swf?a=3D3D3D1&b=3D3D3D2".=3D3D20

I do not know specifically if that will work with loadMovieNum(), but 
=3D
=3D3D
it's worth a try.

-----Original Message-----
From: marc cardenas [mailto:marclena@h...]
Sent: Monday, February 24, 2003 6:11 AM
To: Flash Programming
Subject: [flash_programming] passing variables


Hi,
I'm using flash 5 to do an application.
Withi that movie I calll the loadmovieclip method to load another move
like loadmovienum("xxx.swf",0)
Does anyone knows how can I pass a variable when I call this movie and 
=3D
=3D3D
get=3D3D20
the value of that variable from the mopvie that I load in that 
case=3D3D20
xxx.swf?
Thanks
---
Change your mail options at http://p2p.wrox.com/manager.asp or=3D3D20
to unsubscribe send a blank email to =3D3D
---
Change your mail options at http://p2p.wrox.com/manager.asp or=3D20
to unsubscribe send a blank email to =3D

  Return to Index