[Flashcoders] frame 1 - stop() not working with simulate download

2006-12-12 Thread John Olson
I'm not sure why I never noticed this after so many years, but I was doing a demo for someone the other day and Flash was doing some weird things. It was an old school preloader demo with a stop() and an onEnterFrame loop on frame 1 that checked the bytes loaded and bytes total. I was

Re: [Flashcoders] frame 1 - stop() not working with simulate download

2006-12-12 Thread Mick G
I've seen this behavior when using if(bytesLoaded==bytesTotal) and not checking if the bytesLoaded is 1K (or some small file size) to be sure it has started loading. So... use-- if(bytesLoaded==bytesTotal bytesLoaded1024) On 12/12/06, John Olson [EMAIL PROTECTED] wrote: I'm not sure why I

RE: [Flashcoders] frame 1 - stop() not working with simulate download

2006-12-12 Thread Steven Sacks | BLITZ
An empty movieclip has a size of 4 bytes so you check to see if the bytesTotal 4 in addition to the percent loaded == 100. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] frame 1 - stop() not working with simulate download

2006-12-12 Thread John Olson
didn't see before. - John On 12/12/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Message: 11 Date: Tue, 12 Dec 2006 11:35:25 -0800 From: Mick G [EMAIL PROTECTED] Subject: Re: [Flashcoders] frame 1 - stop() not working with simulate download To: Flashcoders mailing list flashcoders