  | | | preloading images | preloading images 2004-03-17 - By Adrian McTaggart
Back Thank you Andreas.
I will try using a separate holder on the first frame so they are preloaded. I am not sure why having the onEnterFrame handler attached to the clip the movie is loaded into is a bad thing. Not disagreeing I just don't know!
Doesn't the mc that the image is being loaded into still exist when download begins and I use the line 'if (howLoaded == totalLoaded)' to check when fully loaded and at this point delete the onEnterFrame.
Adrian
-- --Original Message-- -- From: Andreas Weber [mailto:webweber@(protected)] Sent: Wednesday, March 17, 2004 10:14 AM To: flashnewbie@(protected) Subject: RE: [Flashnewbie] preloading images
Even if the image is in the browser cache there will be a small delay to reload it - longer in some Browsers/OS (some Mac?). So yes, in this case (20 images) I think it might be a good idea to have a separate holder for each of them and then toggle the visibility to show/hide them (even though this can put some strain on the CPU if you have a big number of big images).
I don't quite trust how you monitor the download progress. You have the onEnterFrame handler attached to the clip the movie is loaded into. I would expect that it gets wiped out as soon as the download starts.
HTH -- ---- ------ Andreas Weber motiondraw.com
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) For additional commands, e-mail: flashnewbie-help@(protected)
|
|
 |