# (MX) loading specific frame into a main movie

**URL:** <https://forum.kirupa.com/t/mx-loading-specific-frame-into-a-main-movie/19942>\
**Category:** flash\
**Created:** [May 3, 2003, 5:53am UTC](https://forum.kirupa.com/t/mx-loading-specific-frame-into-a-main-movie/19942 "2003-05-03T05:53:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eyeball](https://avatars.discourse-cdn.com/v4/letter/e/5daacb/32.png) [@Eyeball](https://forum.kirupa.com/u/Eyeball)\
**Post date:** [May 3, 2003, 5:53am UTC](https://forum.kirupa.com/t/mx-loading-specific-frame-into-a-main-movie/19942/1 "2003-05-03T05:53:52Z")

</div>

I need help big time  
I have a main movie that loads about 30 external swf’s, so i have a button which after its pressed it loads an external swf and a specific frame,

i.e

there is a main movie called main.swf and there is an external movie that has about 15 frames and its called movie.swf I added a button to a main.swf so when its pressed it loads that external movie.swf so my question is: how do i load a specifc frame of that movie.swf

please help me ASAP

Thank you to all of you.

---

<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:** [May 3, 2003, 10:22am UTC](https://forum.kirupa.com/t/mx-loading-specific-frame-into-a-main-movie/19942/2 "2003-05-03T10:22:27Z")

</div>

ok there is a way that works with this. I can do it on a button click, but am having difficulty making the same thing occur with AS in the timeline tho - so if anybody else has any hints I would be grateful.

\_root.createEmptyMovieClip(“yourname”, 1);  
// 1 refers to the level you may want to change it to affect the z order  
yourname.loadMovie(“path/filename.swf”);

button.onPress = function() {  
yourname.gotoandPlay(2);  
}  
you can make the 2 any frame in the movie you have loaded in, but I did it like this because there is a stop in frame 1 of the loaded movie

you can also do various checks which you can put out in a trace like yourname.\_currentframe so you can check where you are etc etc.
