// A URLRequest object pointing to the external movie.var mainURL:URLRequest = new URLRequest( "movie.swf" ); // A Loader object (use to load SWF, PNG, GIF, JPG).var mainMovie:Loader = new Loader(); // Add listeners to the Loader.contentLoaderInfo object.mainMovie.contentLoaderInfo.addEventListener( ProgressEvent.PROGRESS, progressListener );mainMovie.contentLoaderInfo.addEventListener( Event.COMPLETE, completeListener ); // Load the external movie using the URLRequest.mainMovie.load( mainURL ); // Invoked while the exteral movie is loading.function progressListener( event:ProgressEvent ):void{ trace( "progress = " + event.bytesLoaded ); // This is where you would update the progress bar.} // Invoked when the external movie has completed loading.function completeListener( event:Event ):void{ trace( "complete" ); addChild( mainMovie ); // It would be a good idea to remove the // mainMovie.contentLoaderInfo listeners here as well.}