When movieLoader loads a clip, once it has finished, all the properties of that clip are reset to default values.

This includes "on" events

This is how I deal with the issue:

   createEmptyMovieClip("_cancelOrder", getNextHighestDepth());
   loader.loadClip("buttonCancelOrder.gif", this["_cancelOrder"]);
   loadListener.onLoadComplete = function(_cancelOrder):Void {
       _cancelOrder ._visible = false;
   }

In this example, I'm setting visibility - but the same applies to setting onReleases and whatnot.

David
_______________________________________________
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