Forum Moderators: open
I was wondering if anybody would be able to shed some light on what the maximum file size of a Flash banner should be?
I have a series of Flash banners which have embedded video and they are reaching around 900Kb each?
I know the visitors to my site have a fast internet connection so will these be OK to use or will I need to progressively stream then? (this I can't figure out how to do on stage)
Cheers peeps!
John.
While there's no set in stone metric for filesize for images, embedded objects etc., it's always worth trying to build your page to load quickly and cleanly for everyone.
How about using a preview shot of the movie that gives people a hint of what they will see, a play button and let them click to play the movie? People are generally more open to waiting a little for a movie to load if they have clicked a play button!
HTH
I have a series of Flash banners which have embedded video and they are reaching around 900Kb each?
This is probably the wrong approach, especially if you're going to have it on many pages of your site. Although I'm not the most strict in respect to optimizing page sizes, 900K for a single object is HUGE. Cutting down your video and sacrificing content or quality is a compromise, one you shouldn't have to do.
You need to look at methods of importing the video on demand. This is where streaming video comes in. Normally this is done with a player of some sort, but it's pretty easy to do this with a single play button. You create a video object, name the instance on the stage (my_video,) create your button, then onMouseDown you do something like:
var my_nc:NetConnection = new NetConnection();
my_nc.connect(null);
var my_ns:NetStream = new NetStream(my_nc);
my_video.attachVideo(my_ns);
my_ns.setBufferTime(5);
my_ns.play("/path_to_your_banner.flv");
(Directly from "creating a video banner" in ActionScript 2.0 manual, Working with Images, Sound, and Video > About using FLV video > Creating a video banner )
Using XML import or variables, you could put a variable in the page and pass it to Flash, so all of your series could play different videos through a single "player."