# loadMovie question

**URL:** <https://forum.kirupa.com/t/loadmovie-question/22461>\
**Category:** Uncategorized\
**Created:** [June 4, 2003, 1:23pm UTC](https://forum.kirupa.com/t/loadmovie-question/22461 "2003-06-04T13:23:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![atomgiant](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@atomgiant](https://forum.kirupa.com/u/atomgiant)\
**Post date:** [June 4, 2003, 1:23pm UTC](https://forum.kirupa.com/t/loadmovie-question/22461/1 "2003-06-04T13:23:52Z")

</div>

Hi,

In Flash 5:

If I call the loadMovie() method and then immediately try to call stop() on the loaded movie, it will not work.

However, if I call stop() elsewhere, it will work.

Could someone explain why this is the case? I tried looping until the movie is loaded but it still will not work.

Thanks,  
—atomgiant

---

<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:** [June 4, 2003, 2:51pm UTC](https://forum.kirupa.com/t/loadmovie-question/22461/2 "2003-06-04T14:51:35Z")

</div>

Are you calling stop(); from within the loaded movie or from the main movie ?

---

<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:** [June 4, 2003, 3:06pm UTC](https://forum.kirupa.com/t/loadmovie-question/22461/3 "2003-06-04T15:06:13Z")

</div>

I am calling stop from within the main movie.

For example, I have a clip with an onLoad event that will attempt to loadMovie() the new movie by calling a function similar to the following pseudo-code (this is not the actual code so ignore code errors):

onClipEvent( load )  
{  
init(); // calls the init function listed below

// NOTE: if I call \_root.myClip.stop() here it will work  
}

function init()  
{  
loadMovie( ‘movie.swf’, ‘\_root.myClip’ );

\_root.myClip.stop(); // this will not work  
}
