# loadMovie question

**URL:** <https://forum.kirupa.com/t/loadmovie-question/96729>\
**Category:** Uncategorized\
**Created:** [December 12, 2003, 8:46pm UTC](https://forum.kirupa.com/t/loadmovie-question/96729 "2003-12-12T20:46:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![justchad](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@justchad](https://forum.kirupa.com/u/justchad)\
**Post date:** [December 12, 2003, 8:46pm UTC](https://forum.kirupa.com/t/loadmovie-question/96729/1 "2003-12-12T20:46:29Z")

</div>

Is there any way to evaluate whether loadMovie was successful or not from within the movie in which you called loadMovie()?

---

<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:** [December 12, 2003, 9:45pm UTC](https://forum.kirupa.com/t/loadmovie-question/96729/2 "2003-12-12T21:45:18Z")

</div>

well you can test to see if the movie was called, not sure about if its actaully visually there.

```auto

movieLoaded = false
button.onRelease = function(){
loadMovie("movie.swf","placeholder");
movieLoaded = true;
trace(movieLoaded);
}

```

---

<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:** [December 12, 2003, 11:07pm UTC](https://forum.kirupa.com/t/loadmovie-question/96729/3 "2003-12-12T23:07:04Z")

</div>

Use the [font=courier new]MovieClipLoader.loadClip()[/font] method instead, which will trigger the [font=courier new]onLoadError[/font] event if it has failed to load the file. 😉

```auto
var my_mcl = new MovieClipLoader();
my_mcl.onLoadError = function(target_mc, errorCode) {
	trace(errorCode);
};
my_mcl.loadClip("movie.swf", my_mc);

```

[http://livedocs.macromedia.com/flash/mx2004/main/12\_as468.htm#wp1602992](http://livedocs.macromedia.com/flash/mx2004/main/12_as468.htm#wp1602992)

---

<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:** [December 13, 2003, 12:03am UTC](https://forum.kirupa.com/t/loadmovie-question/96729/4 "2003-12-13T00:03:06Z")

</div>

nice kode
