I have just encountered to an interesting issue. If I terminate the MovieClipLoader's loadClip process within the "Simulate Download" environment, the Flash IDE crashes without exception. If you do the same in "Test Movie", SA Player, or browser plug-in, it works fine as expected.

The boiled down code is as follows:

//
var mcl:MovieClipLoader = new MovieClipLoader();
mcl.addListener(this);
this.onLoadProgress = function(mc:MovieClip, loadedBytes:Number, totalBytes:Number):Void {
   trace(mc._url);
   trace(totalBytes);
   mcl.unloadClip(mc);
   mc.removeMovieClip();
};
this.createEmptyMovieClip("mc", 1);
mcl.loadClip("1.swf", mc);
stop();
//

The code above crashes IDE in Simulate Download mode, but nowhere else. Do you guys have any ideas for why?
--
// Kenneth Kawamoto (on the road)
// materia prima limited
// [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
// www.materiaprima.co.uk <http://www.materiaprima.co.uk>

_______________________________________________
Flashcoders@chattyfig.figleaf.com
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

Reply via email to