Question
Accessing resources in loaded/external SWFs
I've been looking around for an effective way of solving this
issue, but without much like. What I'm trying to accomplish is
creating a container for my newest Flash site in main.swf and
loading other swf files that provide resources that modify mcs,
functions etc. of the main.swf. I plan to have main.swf hold my
background, logo etc. then each subrelated page as contact.swf,
index.swf to be placed on top of that swf.
I did find this thread: http://www.kirupa.com/forum/archive/index.php/t-241538.html but all I managed to get from it is how to reference elements in the child from the parent using Loader.content. What I'm trying to figure out is how to reference from the child to the parent. ie. if I want to modify the background of the main.swf which is contained in a function called changeBackground().
To add some more complexity I am trying to keep as much of my code in .as files that are placed in the Document class. So for each main.fla I have a main.as and index.fla is index.as. In my index.as script I need to determine how to access objects/functions contained in main.as.
I HOPE that I've explained that all properly. If I'm being confusing or using inappropriate terms - apologies.
I did find this thread: http://www.kirupa.com/forum/archive/index.php/t-241538.html but all I managed to get from it is how to reference elements in the child from the parent using Loader.content. What I'm trying to figure out is how to reference from the child to the parent. ie. if I want to modify the background of the main.swf which is contained in a function called changeBackground().
To add some more complexity I am trying to keep as much of my code in .as files that are placed in the Document class. So for each main.fla I have a main.as and index.fla is index.as. In my index.as script I need to determine how to access objects/functions contained in main.as.
I HOPE that I've explained that all properly. If I'm being confusing or using inappropriate terms - apologies.