MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 534

Components language reference
Table of Contents

Advertisement

22.
In the Actions panel on Frame 1 of the Timeline, add an import statement for the video
classes, and assign the button and seek bar names to the corresponding FLVPlayback
properties, as shown in the following example:
import mx.video.*;
my_FLVPlybk.stopButton = my_stopbttn;
my_FLVPlybk.playPausebttn = my_plypausbttn;
my_FLVPlybk.muteButton = my_mutebttn;
my_FLVPlybk.seekBar = my_seekbar;
23.
Press Control+Enter to test the movie.
Creating a new skin
The best way to create a skin SWF file is to copy one of the skin files that come with Flash 8,
and use it as a starting point. You can find the FLA files for these skins in the Flash 8
application folder in <lang code>/Configuration/SkinFLA. To make your finished skin SWF
file available as an option in the Select Skin dialog box, put it in the <lang code>/
Configuration/Skins folder either in the Flash 8 application folder or in a user's local
Configuration/Skins folder.
You will find that simple modifications that change the appearance of a button or of the
chrome (the background) of a button, without changing the dimensions, are fairly easy. All the
installed skins have the same buttons based on different-colored chromes, so you can make
dramatic changes by simply changing the color of the chrome. You can make changes, such as
rearranging controls in the layout movie clip, by simply moving the placeholder clips. You can
see these changes exactly as they will appear in the finished SWF file.
When looking at the installed Flash 8 skin FLA files, it might seem that certain things on the
Stage are unnecessary, but many of these things are put into guide layers. To quickly see what
actually appears in the SWF file, type Ctl-Enter to test the movie. This will also show you
how 9-slice scaling affects certain controls, because 9-slice scaling is not in effect when you are
authoring.
The following sections cover more complex customizations and changes to the SeekBar,
BufferingBar, and VolumeBar movie clips.
Using layout_mc
When you open a Flash 8 skin FLA file, you will find a movie clip named layout_mc in the
upper-left corner of the Stage. This clip must be named
the ActionScript code that you find on the same frame define how the controls will be laid out
at runtime.
532
FLVPlayback Component (Flash Professional Only)
ayout_mc. The layout_mc clip and
l

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents