# Controlling a loaded movie clip

**URL:** <https://forum.kirupa.com/t/controlling-a-loaded-movie-clip/35307>\
**Category:** Uncategorized\
**Created:** [November 12, 2003, 4:29pm UTC](https://forum.kirupa.com/t/controlling-a-loaded-movie-clip/35307 "2003-11-12T16:29:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![max999](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@max999](https://forum.kirupa.com/u/max999)\
**Post date:** [November 12, 2003, 4:29pm UTC](https://forum.kirupa.com/t/controlling-a-loaded-movie-clip/35307/1 "2003-11-12T16:29:09Z")

</div>

Hi i am trying to give a command to a loaded into a level mc  
to goto a specif frame.  
this is the original command that is attach to a Button (without the gotoandstop action)  
on (press) {  
loadMovieNum(“photographers.swf”, 2);  
loadMovieNum(“massimo.swf”, 3);  
unloadMovieNum(4);  
}  
i want massimo.swf to load and goto a specif frame in massimo.swf.  
I tryed the  
massimo.gotoandstop(10);  
\_root.massimo.gotoandstop(10);  
\_parent.gotoandstop(10);

and i also tryed to define the mc  
var wichcliptouse=“massimo”;  
this[wichcliptouse].stop();  
i also used the [ and " on all the \_parent actions etc.  
So it is very confusing to me , do i have to change the level dept of massimo.swf? please help  
thanks a lot guys  
max

---

<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:** [November 12, 2003, 5:29pm UTC](https://forum.kirupa.com/t/controlling-a-loaded-movie-clip/35307/2 "2003-11-12T17:29:46Z")

</div>

Hi,

[AS]  
\_level3.gotoAndStop(10);  
[/AS]

However it takes a fraction of a second for the level to be created when the movie gets loaded into it, so you can’t immediatly control the loaded movie. so using the gotoAndStop action directly after the loadMovieNum, like this,

[AS]  
loadMovieNum(“massimo.swf”, 3);  
\_level3.gotoAndStop(10); // it’s likely level3 hasn’t had time to be created yet  
[/AS]

will fail.

---

<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:** [November 12, 2003, 6:12pm UTC](https://forum.kirupa.com/t/controlling-a-loaded-movie-clip/35307/3 "2003-11-12T18:12:13Z")

</div>

Rather than throwing a ball to \_level3 and hoping it’s there to catch it, you’re better having \_level3 ask for the ball when it’s ready.

e.g.

\_global.goWhere=10

then, in the first frame of the loaded swf

gotoAnd Stop(\_global.goWhere)

---

<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:** [November 13, 2003, 3:07pm UTC](https://forum.kirupa.com/t/controlling-a-loaded-movie-clip/35307/4 "2003-11-13T15:07:24Z")

</div>

Thanks a lot for your help.  
Massimo

---

<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:** [November 13, 2003, 4:32pm UTC](https://forum.kirupa.com/t/controlling-a-loaded-movie-clip/35307/5 "2003-11-13T16:32:13Z")

</div>

Thanks a lot the \_global works perfect , you guys are the best.  
massimo
