PDA

View Full Version : Passing variables in projector


margustiru
03-07-2005, 12:02 PM
Hi!

Is there a way to pass variables between swf-s loaded to _level0 ?

Specifically: I load a new swf file to level0 using loadMovieNum("second.swf",0) and I want a pass a variable to this new MC. There would be no problem in web environment, but in this case I AM using the PROJECTOR.

Loading new swf to another level is not an option. (unless there is a hack...)

[Sx]
03-23-2005, 01:15 PM
If you are using Flash MX or later, you can setup a global variable using _global in front of the variable name, and in that case you would be able to access your variable by just using it's name anywhere in the movie...

For previous versions, I don't see why it would be a problem to load movie into another level and leave variables on _level0 intact...

Hope it helps...

madgett
04-16-2005, 04:28 AM
Check out "LocalConnection Class" in the Flash Help. It allows you to pass variables between 2 separate Flash Player instances. Even on the web. It's awesome :).