Published in: ActionScript
Loads some external content into a flash files and places it into a holder movie clip. Once the content has been loaded and the first frame initialised the trace code is run.
//Create an empty holding movie clip on the stage this.createEmptyMovieClip("mcHolder",this.getNextHighestDepth()); //create an new object for the event listner var oListner:Object = new Object(); //Waits for first frame to be initialised (loaded) then executes the code oListner.onLoadInit = function(mcContent:MovieClip):Void { trace(mcContent._name);//passes the name of the content loaded to a trace }; //create a new movie clip loader object. var mclLoader:MovieClipLoader = new MovieClipLoader(); //Passes any listen events to the listner object mclLoader.addListener(oListner); //Load the selected content into the holder movie clip mclLoader.loadClip("n.swf", mcHolder);
You need to login to post a comment.
