PDA

View Full Version : Progressive download on swfs



bardic
May 26th, 2008, 03:58 PM
Hey everyone. here's my problem. I have a swf with just a jpg as the background and a simple animation. I simply want the swf to start playing and do a progressive download and continue to play. With the jpg it won't start playing until the jpg is finish downloading. Without it will start playing and downloading at the same time. I am using Event.INIT to know when the swf is loaded enough to play. Any idea why it won't 'stream' with the image?

amarghosh
May 27th, 2008, 03:38 AM
i think Flash just don't stream images -- thats the way it is....
an animation can start playing if sufficient frames are available. But for an image --- displaying it pixel by pixel or line by line (similar to the way desktop bkg image is shown when my windows hangs up :) ) is not desirable normally (at least i think so). may be thats why flash did it like that.

GarFonz
May 31st, 2009, 01:22 AM
maybe slice an image into sections >= 1px, total frames of image.flv == image.height * sliceSize;
then each frame will add a slice of the image, then you can progressivly download/stream;

BenBart
May 31st, 2009, 02:46 AM
maybe slice an image into sections >= 1px, total frames of image.flv == image.height * sliceSize;
then each frame will add a slice of the image, then you can progressivly download/stream;

Someone else posted this question last week. I suggested they try using the "onProgress" event. No clue if that worked for them though. Another thing you could do is have two JPEG, one that's super compressed, another that isn't. But then you're making more files to download.