Attachbitmap (Movieclip.attachbitmap Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

audio_sound.setVolume(audio_sound.getVolume()-10);
updateVolume();
}
};
// Updates the volume.
this.createTextField("volume_txt", this.getNextHighestDepth(), 0, 0, 100,
22);
updateVolume();
function updateVolume() {
volume_txt.text = "Volume: "+audio_sound.getVolume();
}
The following example specifies a microphone as the audio source for a dynamically created
movie clip instance called
var active_mic:Microphone = Microphone.get();
this.createEmptyMovieClip("audio_mc", this.getNextHighestDepth());
audio_mc.attachAudio(active_mic);
The
MovieClip.getNextHighestDepth()
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
See also
,
Microphone
play (NetStream.play method)
(Video.attachVideo method)

attachBitmap (MovieClip.attachBitmap method)

public attachBitmap(bmp:BitmapData, depth:Number, [pixelSnapping:String],
[smoothing:Boolean]) : Void
Attaches a bitmap image to a movie clip.
After the bitmap is attached to the movie clip, a reference is made from the movie clip to the
bitmap object. When attaching a bitmap, you can specify
parameters to affect the appearance of the bitmap.
After an object is added to the movie clip, it is not an accessible object. The
, and
pixelSnapping
method call and cannot be changed later.
First use the
createEmptyMovieClip()
method. This way, you can apply transformations to the movie clip to
attachBitmap()
transform the bitmap; for example, by using the
828
ActionScript classes
:
audio_mc
MovieClip.getNextHighestDepth()
parameters can only be set during the
smoothing
to create an empty movie clip, then use the
method used in this example requires Flash Player
,
,
Sound
attachVideo
pixelSnapping
property of the movie clip.
matrix
method.
and
smoothing
,
depth
attachBitmap()

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 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

Save PDF