632
Working with Images, Sound, and Video
9.
Select Control > Test Movie to test your code.
The video loads and an animating bar and changing text values communicate the loading
progress. If these elements overlap your video, move the video object on the Stage. You
can customize the color of the progress bar by modifying
beginFill
and
lineStyle
in
previous code snippet.
You can find a sample source file that uses scripted animation to create a progress bar
animation. Find tweenProgress.fla in the Samples folder on your hard disk.
■
In Windows, browse to
boot drive
\Program Files\Macromedia\Flash 8\Samples and
Tutorials\Samples\ActionScript\Tween ProgressBar.
■
On the Macintosh, browse to
Macintosh HD
/Applications/Macromedia Flash 8/Samples
and Tutorials/Samples/ActionScript/Tween ProgressBar.
NO
TE
If your progress bar loads instantly, the video is cached on your hard disk (either from
testing this example already, or loading it in a different procedure). If this occurs,
upload a FLV file to your server and load it instead.
Содержание FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
Страница 1: ...Learning ActionScript 2 0 in Flash...
Страница 8: ...8 Contents...
Страница 18: ...18 Introduction...
Страница 30: ...30 What s New in Flash 8 ActionScript...
Страница 66: ...66 Writing and Editing ActionScript 2 0...
Страница 328: ...328 Interfaces...
Страница 350: ...350 Handling Events...
Страница 590: ...590 Creating Interaction with ActionScript...
Страница 710: ...710 Understanding Security...
Страница 730: ...730 Debugging Applications...
Страница 780: ...780 Deprecated Flash 4 operators...
Страница 830: ...830 Index...