This content has been marked as final. Show 3 replies
Well I got the parent to child communication working with this code:
var squareRequest:URLRequest = new URLRequest("square.swf");
var loader:Loader = new Loader();
But I cannot figure out how to do the reverse (child to parent) communication! Apparently root no longer references the main swf file.
To communicate from the child to parent swf...
if(this.parent.root != stage) // prevents compiler error when publishing child swf
If anyone else has a better solution, i'm all ears...
a more general solution is to use try...catch.