Answered
Loaded swf, passing variables
If i load a swf movieclip into a parent swf i.e. using:
_root.loadMovie("bar_chart.swf");
How can i then pass variables into this swf from the parent using AS?
Is it possible to use _global to declare a global variable in the parent and then acessing this in the loaded swf i.e.:
Parent:
_global.test = new Array();
Loaded:
test=y;
(though this doesnt work as i have tried it, but something along these lines)
Basically i'd appreciate any info on how i could pass variables between a loaded swf and its parent, though try to keep it in laymans terms because i'm not so hot at action script.
Thanks for any help in advance!
_root.loadMovie("bar_chart.swf");
How can i then pass variables into this swf from the parent using AS?
Is it possible to use _global to declare a global variable in the parent and then acessing this in the loaded swf i.e.:
Parent:
_global.test = new Array();
Loaded:
test
(though this doesnt work as i have tried it, but something along these lines)
Basically i'd appreciate any info on how i could pass variables between a loaded swf and its parent, though try to keep it in laymans terms because i'm not so hot at action script.
Thanks for any help in advance!