# Help: Call methods or dispatch events from Loaded swf?

**URL:** <https://forum.kirupa.com/t/help-call-methods-or-dispatch-events-from-loaded-swf/248409>\
**Category:** flash\
**Created:** [January 8, 2008, 12:12am UTC](https://forum.kirupa.com/t/help-call-methods-or-dispatch-events-from-loaded-swf/248409 "2008-01-08T00:12:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dseeley](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@dseeley](https://forum.kirupa.com/u/dseeley)\
**Post date:** [January 8, 2008, 12:12am UTC](https://forum.kirupa.com/t/help-call-methods-or-dispatch-events-from-loaded-swf/248409/1 "2008-01-08T00:12:45Z")

</div>

OK, I must be massively missing something. I want to do the following, using a best practices method:[LIST=1]  
[_]From MAINSWF create a Loader  
[_]Loader loads SUBSWF.swf, which contains buttons, code (AS3), etc  
[_]have buttons or code in SUBSWF.swf call a method or dispatch an event to MAINSWF. Really any way to get a message of any kind to MAINSWF will be fine.[/LIST]I can’t for the life of me figure out how to do it, because:[LIST=1]  
[_] I cannot trace up the displayObject chain from within Loader. The tree dies at Loader when I try to traverse upwards from SUBSWF.swf. So I cannot call the equiv of this.parent.parent.doStuff();  
[\*] I can’t get custom events to propagate up from SUBSWF.swf to MAINSWF. It’s as if there is an event “firewall” within Loader. [See my related post for info.](http://www.kirupa.com/forum/showthread.php?p=2268199#post2268199)[/LIST]I’m sure someone has figured this out. Any help is much appreciated.

Thanks,  
dseeley
