
Using templates
595
Flash Professional 8 lets you creatively use and deploy video in your Flash projects. The ability
to play back external Flash Video (FLV) files enables authors to use video in more projects
that can be viewable by wider audiences. The video templates provided with Flash
Professional 8 can help you create video presentations and user interfaces for selecting from
multiple bandwidth-tuned streams of video.
Using the Bandwidth Selection template (Flash Professional
only)
The Bandwidth Selection template uses forms and components to present the selection
interface. This interface lets users control how much content they receive and lets authors
tailor their applications to a variety of connection speeds. After the user makes a speed
selection, the media playback component is directed to play the specified video.
The Select screen contains radio buttons that allow bandwidth selection. ActionScript to
handle the selection of radio buttons is included within the Timeline of this screen.
To change the option labels or the number of options that users is presented, you can add,
remove, or edit the components on the Select form.
Setting the URLs to the video content (Flash Professional
only)
The media playback component progressively downloads FLV files without requiring them to
be embedded in the SWF file.
The
data
property of the radio buttons is set to a string that is appended to a base string to
properly form the correct URL. For example, if the user selects High Bandwidth and the base
string is cartoon, the file that is loaded is cartoon_hi.flv.
To change the base string, open the Actions panel and select Frame 1 of the Actions layer of
the Select screen. Edit the following ActionScript according to the instructions within the
comments:
// Replace "test" with your own base string. Be sure
// to keep the quotes.
var video_base:String = "test"
When the user makes a selection, the code appends the base string you’ve set with the
string stored in the data property of the radio button, and the media playback component
loads the media.
Содержание FLASH 8-FLASH
Страница 1: ...Using Flash ...
Страница 12: ...12 Contents ...
Страница 110: ...110 Using Symbols Instances and Library Assets ...
Страница 128: ...128 Working with Color Strokes and Fills ...
Страница 156: ...156 Drawing ...
Страница 190: ...190 Working with Text ...
Страница 224: ...224 Working with Graphic Objects ...
Страница 270: ...270 Creating Motion ...
Страница 310: ...310 Working with Video ...
Страница 362: ...362 Working with Screens Flash Professional Only ...
Страница 386: ...386 Creating Multilanguage Text ...
Страница 454: ...454 Data Integration Flash Professional Only ...
Страница 500: ...500 Publishing ...
Страница 534: ...534 Creating Accessible Content ...