About using FLV video 609
In this example, you created a banner and resized its dimensions to the established,
standardized dimensions that the Interactive Advertising Bureau specifies. For information on
standard advertising dimensions (and many other useful guidelines), see the Interactive
Advertising Bureau’s Standards and Guidelines page at www.iab.net/standards/adunits.asp.
Despite standardized guidelines, ensure that you confirm the advertising guidelines for the
advertising service, client, or website that you’re advertising with first. If you submit your
banner to an advertising company, make sure the file meets a specified file size, dimension,
target Flash Player version, and frame-rate guideline. Also, you might have to consider rules
about the kinds of media you can use, button code you use in the FLA file, and so on.
Preloading FLV files
To track the downloading progress of FLV files, use the NetStream.bytesLoaded and
NetStream.bytesTotal properties. To obtain the total bytes and current number of bytes
loaded for an FLV file, use the
NetStream.bytesLoaded and NetStream.bytesTotal
properties.
The following example uses the
bytesLoaded and bytesTotal properties that show the
loading progress of video1.flv into the video object instance called my_video. A text field
called loaded_txt is dynamically created to show information about the loading progress.
To preload an FLV file:
1. Create a new FLA file called preloadFLV.fla.
2. In the Library panel (Window > Library), select New Video from the Library
pop-up menu.
3. In the Video Properties dialog box, name the video symbol and select Video (ActionScript
controlled).
4. Click OK to create a video object.
5. Drag the video object from the Library panel to the Stage to create a video object instance.
6. With the video object selected on the Stage, type my_video in the Instance Name text box
in the Property inspector (Window > Properties > Properties).
7. With the video instance still selected, type 320 in the width text box and 213 in the height
text box in the Property inspector.
8. Select Frame 1 in the Timeline, and open the Actions panel (Window > Actions).