access variables across movies
I was just trying to access variables across movieclips:
- Movie A contains an empty Movieclip and loads Movie B into the empty movieclip. (no levels used) So now movie A contains movie B.
- I use an extra timeline in movie A for variables (does this make sense? see below). There I want to set the variable 'serie' to "srpo1001".
- As soon as the movie B starts playing it wants to know what 'serie' in movie A is set to, because it needs this information to access the proper database via PHP & mySQL.
I tried referencing by _parent.serie or _parent._parent.serie (how many _parents do I really need?), but tracing still shows serie as 'undefined'
How do I properly access variables in other movies? Do you have any tips for using variables at all? When gets a variable lost (by entering the next keyframe)? Maybe you know a useful tutorial? I found only courses for $900 and up
thanks a lot
|Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)|
|Thread||Thread Starter||Forum||Replies||Last Post|
|access variables in functions||chosen||Actionscript 2.0||1||03-22-2007 06:49 PM|
|LoadVars giving problems. can't access the variables||dany||Flash MX ActionScript||2||06-20-2005 10:20 AM|
|sending variables to other movies?||mydave||General Flash||2||07-23-2004 10:14 AM|
|Passing Variables to movies||JonnyPop||Flash MX 2004||2||02-04-2004 09:21 PM|
|How to access variables in child MC ?||Amn||Newbies||3||06-27-2003 02:24 PM|