Creating a video object

Before you can load and manipulate video using ActionScript, you need to create a video object, drag it to the Stage, and give it an instance name. The following example describes how to add a video instance to an application.

To create a video object:

  1. With a document open in the Flash authoring tool, select New Video from the pop-up menu in the Library panel (Window > Library).
  2. In the Video Properties dialog box, name the video symbol and select Video (ActionScript controlled).
  3. Click OK to create a video object.
  4. Drag the video object from the Library panel to the Stage to create a video object instance.
  5. With the video object selected on the Stage, type my_video in the Instance Name text box in the Property inspector (Window > Properties > Properties).

    Now you have a video instance on the Stage, for which you can add ActionScript to load video or manipulate the instance in a variety of ways.

For information on loading FLV files dynamically, see Playing back external FLV files dynamically. For information on creating a video banner, see Creating a video banner.


Flash CS3


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/main/00001033.html