Flash Guru: How to Delay Loading a Flash Video Orlando FL

In this installment of our monthly series, we again turn to our favorite Flash guru, Stefan Richter, to answer a question from our forum. This time: How to delay loading a video, in order to save bandwidth and create a better user experience.

Local Companies

Encore Products
(407) 290-5443
8221 Tivoli Dr
Orlando, FL
Place 4 Me Inc the
(407) 568-6600
19309 Sheldon St
Orlando, FL
Freelance-Editor.Com
(407) 898-4299
Orlando, FL
Webmaster Jm Com Inc
(407) 316-0309
Orlando, FL
Busybrain Inc
(407) 522-4900
5933 Avery St
Orlando, FL
Cobian International Group
407-447-1140
5728 Major Blvd. Ste. 601
Orlando, FL
Ncis Inc
(407) 568-6600
19309 Sheldon St
Orlando, FL
Amstec Inc
(407) 656-0901
132 E Colonial Dr Ste 219
Orlando, FL
Magnolia Development Group
(407) 248-9909
Orlando, FL
Dine Out Orlando
(407) 244-3668
Orlando, FL

provided by: 
Originally published at Internet.com


In this installment of our monthly series, we again turn to our favorite Flash guru, Stefan Richter, to answer a question from our forum. This time: How to delay loading a video, in order to save bandwidth and create a better user experience.

Stefan Richter

If you're not familiar with him, Stefan Richter is a certified Flash developer and he's been involved with Flash since it first began. Regular readers to this site will recognize the excerpt "Everything You Don't Know About Flash" from his book Hands-On Guide to Flash Video, (co-written with Jan Ozer).

Reader "fzr600man" asked: Is there any way to slow down the load rate of videos? When my page first loads up, it buffers all Flash videos that are on this page. Each video is about 10 Megs. So for 3 videos when a person calls up this page it will buffer all the videos, even if they don't watch them. I see this as a huge waste of bandwidth. Is there any way to just get the first few seconds of the video for the thumbnail preview, and then only load the rest if they click on the play button? I am using the video components that come with Flash Professional CS3.

Stefan's Reply:
This is a pretty common question and there are a few ways to go about it. The easiest way-although the most labor-intensive-is to put the FLVPlayback Component on frame 2 and put a stop action on frame 1. Put a playback on frame 1, as well. Then, the first frame of the video will load and stop. Only when the viewer clicks to play the rest will the remainder of the video load.

Since the first frame of your work probably won't be the most enticing image, create a screen capture from elsewhere in the video and make that your opening frame. If you have a lot of videos, this could get time-consuming, but it's a simple way to solve the problem.

If you're not using the FLVPlayback Component and if you know ActionScript, there's another way to solve the problem. This method involves getting the video to start playing, then have it attempt to load a second video-one that doesn't exist. When it can't find the second video, it will freeze on the current video, effectively showing a preview. The viewer can then click to have the current video continue. Stefan has created a tutorial on how to achieve this on his site (click here for tutorial).

This second method might seem harder, but it has the advantage of not needing a screen grab. Plus, once you have the script you can simply re-use it.

Other Flash Guru articles: * Advice from the Flash Guru * The Flash Guru Answers Your Questions * Solving Browser Incompatibility * Converting Video to FLV * Serving FLV Files Over Slow Connections

Author: Troy Dreier

Read article at Internet.com site

Featured Local Company

Cobian International Group

407-447-1140
5728 Major Blvd. Ste. 601
Orlando, FL

Related Local Event
SNW - STORAGE NETWORKING WORLD Oct 2009
Dates: 10/1/2009 - 10/1/2009
Location: Rosen Shingle Creek
Orlando, FL
View Details