EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 487

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MovieClip.attachAudio() 487
MovieClip._alpha
Availability
Flash Player 4.
Usage
my_mc._alpha
Description
Property; the alpha transparency value of the movie clip specified by my_mc. Valid values are 0
(fully transparent) to 100 (fully opaque). The default value is 100. Objects in a movie clip with
_alpha set to 0 are active, even though they are invisible. For example, you can still click a button
in a movie clip whose
_alpha property is set to 0.
Example
The following code sets the _alpha property of a movie clip named star_mc to 30% when the
button is clicked:
on(release) {
star_mc._alpha = 30;
}
See also
Button._alpha, TextField._alpha
MovieClip.attachAudio()
Availability
Flash Player 6; the ability to attach audio from Flash Video (FLV) files was added in Flash
Player 7.
Usage
my_mc.attachAudio(source)
Parameters
source
The object containing the audio to play. Valid values are a Microphone object, a
NetStream object that is playing an FLV file, and
false (stops playing the audio).
Returns
Nothing.
Description
Method; specifies the audio source to be played. To stop playing the audio source, pass false
for
source.

Table of Contents

Related product manuals