Here is the working example, without gotoAndStop etc. DO NOT USE
onLoadComplete, use onLoadInit
System.security.allowDomain ("google.com");
function onLoadStart( target:MovieClip ):Void {
trace ( "load start")
}
function onLoadError( target:MovieClip, errorCode:String ):Void {
trace( 'loadError '+ errorCode );
}
function onLoadProgress( target:MovieClip, loadedBytes:Number,
totalBytes:Number ):Void {
trace ( "progress " + Math.round ( loadedBytes/totalBytes*100) );
}
function onLoadInit( target:MovieClip ):Void {
target._width = 500;
target._height = 300;
}
var mcl:MovieClipLoader = new MovieClipLoader();
mcl.addListener(this);
mcl.loadClip( "http://www.google.com/logos/olympics06_luge.gif",
this.createEmptyMovieClip( "contHolder", 0 ));
best wishes,
Oleg
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com