# Pass Commands from SWF to SWF

**URL:** <https://forum.kirupa.com/t/pass-commands-from-swf-to-swf/6377>\
**Category:** flash\
**Created:** [October 5, 2002, 8:47pm UTC](https://forum.kirupa.com/t/pass-commands-from-swf-to-swf/6377 "2002-10-05T20:47:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![delusion](https://avatars.discourse-cdn.com/v4/letter/d/47e85d/32.png) [@delusion](https://forum.kirupa.com/u/delusion)\
**Post date:** [October 5, 2002, 8:47pm UTC](https://forum.kirupa.com/t/pass-commands-from-swf-to-swf/6377/1 "2002-10-05T20:47:50Z")

</div>

I have a flash movie that loads an external SWF. That SWF has a button on it that I need to be able to tell the parent flash movie (the one that loaded the external SWF) to goto and play a certain frame of itself. I know how to accomplish this with MCs but not with the external SWF to the parent flash movie. Any information you can give is greatly appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 5, 2002, 9:03pm UTC](https://forum.kirupa.com/t/pass-commands-from-swf-to-swf/6377/2 "2002-10-05T21:03:38Z")

</div>

Basically I have the parent movie stop, calls the external SWF, the SWF does it’s motion then stops, and waits for user to click the back button. At which time, I want the external SWF to do an outro then switch back to the parent movie, unload the external SWF and do an outro on the parent movie. I hope I’m explaining myself well enough.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 5, 2002, 9:14pm UTC](https://forum.kirupa.com/t/pass-commands-from-swf-to-swf/6377/3 "2002-10-05T21:14:44Z")

</div>

Hi, don’t bother responding to my post because I am a dummy! haha… I figured it out on my own. I knew how to do it with MCs but somehow my brain got stuck thinking that external SWFs wouldn’t work the same as MCs…

\_parent.gotoandplay(frame); worked just the same as with the MCs. Thanks anyway though!
