loadMovie question

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

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


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

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. :wink:

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

nice kode