I looked up MovieClipLoader tutorials and finally ended up with the code:
[COLOR=#008000][FONT=courier new]var myMCL:MovieClipLoader = new MovieClipLoader();[/FONT][/COLOR]
[COLOR=#008000][FONT=courier new]var loadListener:Object = new Object();[/FONT][/COLOR]
[COLOR=#008000][FONT=courier new]myMCL.addListener(loadListener);[/FONT][/COLOR]
[COLOR=#008000][FONT=courier new]loadListener.onLoadProgress = function(target_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void
{
var perc:Number = (bytesLoaded / bytesTotal) * 100;
prcnt.text = perc + " %";
}[/FONT][/COLOR]
[COLOR=#008000][FONT=courier new]loadListener.onLoadInit = function(target_mc:MovieClip)
{
trace( target_mc + " finished loading so display on screen now. " );
prcnt.text = "init";
};[/FONT][/COLOR]
[COLOR=#008000][FONT=courier new]loadListener.onLoadError = function(target_mc:MovieClip, errorCode:String, httpStatus:Number)
{
trace( "error loading image : errorCode : " + errorCode );
}[/FONT][/COLOR]
[COLOR=#008000][FONT=courier new]loadListener.onLoadStart = function(target_mc:MovieClip)
{
trace( target_mc + " start loading. maybe you want to do something here? " );
prcnt.text = “onstart”;
};[/FONT][/COLOR]
[COLOR=#008000][FONT=courier new]myMCL.loadClip(“filename.swf”, mcholder); //mcholder is the movie clip holder placed on stage manually[/FONT][/COLOR]
The problem here is that the file does not move beyond
[COLOR=#008000][FONT=courier new]_level0.mcholder start loading. maybe you want to do something here?
_level0.mcholder start loading. maybe you want to do something here?
_level0.mcholder start loading. maybe you want to do something here?
_level0.mcholder start loading. maybe you want to do something here?
_level0.mcholder start loading. maybe you want to do something here?
_level0.mcholder start loading. maybe you want to do something here?
_level0.mcholder start loading. maybe you want to do something here? [/FONT][/COLOR]
Why is this happening? The code is directly from the tutorial. I have included all event functions, in case they are something like abstract functions, I don’t know if this is required or not. I know I must be being a pain, but I can’t figure out what is wrong with the code, seems simple enough to me. I am sure I am missing some basic point. Any help will be greatly appreciated…