all groups > flash actionscript > march 2007 >
You're in the

flash actionscript

group:

Help with Loader component!


Help with Loader component! manutdonline
3/28/2007 11:35:12 PM
flash actionscript:
hi, i've got a Loader component on a swf i call holder.swf
i am loading an external.swf in this loader

i have a variable called music in holder.swf.

is there any way for me to access the variable music that was defined in
holder.swf, from the externally loaded external.swf?

in code:

basically i have in "holder.swf"

onClipEvent (load) {
_root.myLoader.contentPath = "external.swf";
_global.music=5;
}

and in external.swf
i am trying to do

if(_root.music==5){
do something;
}
Re: Help with Loader component! manutdonline
3/29/2007 12:00:00 AM
Re: Help with Loader component! torwalker
3/29/2007 12:00:00 AM
Hi
Won't using _global.music work (rather than _root.music)? I use various ways to load swf files and usually pass variables via _global.
AddThis Social Bookmark Button