Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing variables from one movie to another

Status
Not open for further replies.

MJB3K

Programmer
Jul 16, 2004
524
0
0
GB
Hi, is there a way of passing variables from a loaded movie into a new loaded movie??

e.g.

I have the base movie, and in that is loaded news.swf.

Is there anyway of passing variables from news.swf into the new news_detail.swf movie??

I did think of the global var but don't see how to use it.

Any ideas??

Regards,

Martin

Computing Help And Info:
 
cant get it to work?? It keeps coming up as undefined...

Why would it come up as undefined?

Would you be able to make me a sample because i cant see why its not working...


Regards,

Martin

Computing Help And Info:
 
then just pass it as query string

someClip.loadMovie("news.swf?myvar="+myvar)

not 100% sure as i dont use it but i feel you cant use _global in this way

think it just works on the timeline of the movie its declared in plus any other movie clips in that movie

when you load a new movie into an empty clip i dont think _global works hence undefined
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top