# Controlling a movie which has been loaded from an external swf

**URL:** <https://forum.kirupa.com/t/controlling-a-movie-which-has-been-loaded-from-an-external-swf/75227>\
**Category:** flash\
**Created:** [January 7, 2005, 12:25am UTC](https://forum.kirupa.com/t/controlling-a-movie-which-has-been-loaded-from-an-external-swf/75227 "2005-01-07T00:25:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![53effie](https://avatars.discourse-cdn.com/v4/letter/5/f6c823/32.png) [@53effie](https://forum.kirupa.com/u/53effie)\
**Post date:** [January 7, 2005, 12:25am UTC](https://forum.kirupa.com/t/controlling-a-movie-which-has-been-loaded-from-an-external-swf/75227/1 "2005-01-07T00:25:22Z")

</div>

Hi Folks,

I have a Flash page which loads an external movie (swf file) into an object which I have named “body”. I then wish to start the movie at a frame other than the first, in this case I have labelled the frame as “history” in the external swf. The swf appears to load fine but it starts from the first frame, not the frame labelled “history”. I have placed the following ActionScript on the first frame of an empty layer in the Flash file that contains the “body” object.

```auto

loadMovie("menubot.swf", menuBottom); // Load bottom menu
loadMovie("menutop.swf", menuTop); // Load top menu
_root.section = "thehotel.swf"; // Name of external swf
loadMovie(_root.section, body); // Load swf into "body"
_root.body.gotoAndPlay("history"); // Play loaded swf at "history"

```

Any idea what might be the problem? Could it be that the swf file is not loaded before the gotoAndPlay function occurs? If so, how can I tell it to wait until the movie is loaded?

I have a similar problem elsewhere but I suspect that if I can get an answer to this problem, I will be able to fix the other problem as well. Thank you in advance.

Glen
