# Load swf and call parent method

**URL:** https://forum.kirupa.com/t/load-swf-and-call-parent-method/272099
**Category:** flash
**Created:** [October 2, 2008, 12:42am UTC](https://forum.kirupa.com/t/load-swf-and-call-parent-method/272099 "2008-10-02T00:42:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jokoa](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@jokoa](https://forum.kirupa.com/u/jokoa)
#### Post date: [October 2, 2008, 12:42am UTC](https://forum.kirupa.com/t/load-swf-and-call-parent-method/272099/1 "2008-10-02T00:42:04Z")

</div>

Hello everyone,

I have a problem and i don’t know how to do.

My situation is(see picture):  
I have a main swf(main menu), it will load 4 swf files (sub menu) by var loader:Loader=new Loader(); and load the swf to the empty movieclip (AddChild) that in main menu.

After i load one of the sub menus to my empty movieclip, i want to remove the sub menu and go back to main. But this sub menu is stick with the empty movieclip that in main menu.

How can i call the main menu function to delete the sub menu and call another function to do some transition effect. I tried “this.parent.function” in sub menu, but it have error.
