You email lost it's formatting at my end. Try sending again. Adrian
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Stephen Ford Sent: 04 April 2007 07:27 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] MovieClipLoader ... Can anyone see why the callback events on the oLoadListener object in the following class aren't firing:import mx.data.binding.ObjectDumper;import mx.events.EventDispatcher;import mx.utils.Delegate;class TowerVideoPlayer extends MovieClip { // ---------------------------------------------------------------------- -- // PROPERTIES // ---------------------------------------------------------------------- -- // String values of class name and class version public var sClassName:String; public var sVersion:String; // Class variables for EventDispatcher private var dispatchEvent:Function public var addEventListener:Function; public var removeEventListener:Function; // Sound object for the video private var sndVideo:Sound; // Value of the video's sound object private var bSound:Boolean; // Data for loading of SWFs private var xmlVideo:XML; // Holder clip for the loaded SWF private var mcHolder:MovieClip; // MovieClipLoader for the SWF private var mclLoader:MovieClipLoader; // Load listener for SWFs private var oLoadListener:Object; // ------------------------------------------------------------------ ------ // CONSTRUCTOR // ---------------------------------------------------------------------- -- public function TowerVideoPlayer() { setup(); } // ---------------------------------------------------------------------- -- // FUNCTIONS // ---------------------------------------------------------------------- -- private function setup():Void { trace("TowerVideoPlayer.setup()"); sClassName = "TowerVideoPlayer"; sVersion = "0.0.1"; bSound = true; oLoadListener = new Object(); mcHolder = createEmptyMovieClip("mcHolder", this.getNextHighestDepth()); mclLoader = new MovieClipLoader(); // Initialise event dispatcher EventDispatcher.initialize(this); oLoadListener.onLoadComplete = function(mcTarget:MovieClip, httpStatus:Number):Void { trace(">> loadListener.onLoadComplete()"); } oLoadListener.onLoadInit = function(mcTarget:MovieClip):Void { trace(">> loadListener.onLoadInit()"); } mclLoader.addListener(oLoadListener); mclLoader.loadClip("http://www.w3.org/Icons/w3c_main.png", mcHolder); trace(ObjectDumper.toString(this)); } }_______________________________ ________________ 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 _______________________________________________ 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