You have instances in the library that Loads in first frame, So they load before frame 0, plus you use attachMovie to load your preloader. What happens is that the preloader and all assets that are set to export in first frame load, then the preloader gets attached but all your assets are allready loaded.
The best approach is to separate the preloader from the content to be preloaded in two separate swf. And do not use attachMovie for your preloader instance, just place it on the stage directly. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mendelsohn, Michael Sent: 7 novembre 2006 13:53 To: Flashcoders mailing list Subject: [Flashcoders] Preloader not working with singleton Hi list... Dumb throwback question: my load progress bar isn't working. I have two frames, one to monitor the loading of the swf, and when it happens, go to the next frame to init a singleton, but my load progress bar doesn't show up until the swf is 100% loaded. What am I missing here? Thanks, - Michael M. //First frame: _root.attachMovie("loading", "loading", 1, {_x:574, _y:494}); var l:Number = new Number(_root.getBytesLoaded()); var t:Number = new Number(_root.getBytesTotal()); var pct:Number = new Number(0); _root.onEnterFrame = function():Void { l = _root.getBytesLoaded(); pct = Math.round((l/t)*100); _root.loading.progBar._width = pct; if (pct == 100) { delete _root.onEnterFrame; nextFrame(); } }; stop(); //Second frame: (inits singleton) var o:ar = ar.getInstance(); o.init(); stop(); _______________________________________________ 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.31/522 - Release Date: 2006-11-07 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.31/522 - Release Date: 2006-11-07 _______________________________________________ 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