Dispatch an event from the loaded SWF and let the parent SWF handle the action.
* * * * * * * * * *
MainSite.as
dispatchEvent(new Event("myEventName"));
* * * * * * * * * *
Gallery.as
mainSite.addEventListener("myEventName", myListener);
private function myListener(e:Event):void
{
// call desired method here
}
* * * * * * * * * *
HTH
--
Eduardo Omine
http://blog.omine.net/
http://www.omine.net/
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders