# How do i control an external swf

**URL:** <https://forum.kirupa.com/t/how-do-i-control-an-external-swf/328143>\
**Category:** Uncategorized\
**Created:** [April 22, 2012, 3:36pm UTC](https://forum.kirupa.com/t/how-do-i-control-an-external-swf/328143 "2012-04-22T15:36:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxinquaye](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@maxinquaye](https://forum.kirupa.com/u/maxinquaye)\
**Post date:** [April 22, 2012, 3:36pm UTC](https://forum.kirupa.com/t/how-do-i-control-an-external-swf/328143/1 "2012-04-22T15:36:41Z")

</div>

Hi,

I have a movie, Frames.swf, which opens an swf, Bees.swf. I created a stop action in Bees.swf on frame 2. I’d like to create a gotoandPlay action in Frames.swf that tells Bees.swf to play frame 5.  
This is what i came up with but it doesn’t work.

In Frames.swf i used the code

Bees.swf.gotoAndPlay(5);

but this doens’t work.  
So my question is, how do i write Bees.swf? because i’m guessing adding the period, makes it not work.  
Any idea would be most helpful.

thanks.
