Attachmovie (Movieclip.attachmovie Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

Pixel snapping forces the position of the bitmap to the nearest whole pixel value instead of
positioning to be on a partial pixel. There are three pixel snapping modes:
Auto mode does pixel snapping as long as the bitmap is not stretched or rotated.
Always mode always does pixel snapping, regardless of stretching and rotation.
Never mode turns off pixel snapping for the movie clip.
Smoothing mode affects the appearance of the image when it is scaled.
Availability: ActionScript 1.0; Flash Player 8
Parameters
bmp:flash.display.BitmapData
- An integer that specifies the depth level within the movie clip where the
depth:Number
bitmap image should be placed.
pixelSnapping:String
. The default mode is
never
smoothing:Boolean
for disabled. The default mode is disabled.
Example
The following attaches a very basic bitmap to a movie clip:
import flash.display.*;
this.createEmptyMovieClip("bmp1", this.getNextHighestDepth());
var bmpData1:BitmapData = new BitmapData(200, 200, false, 0xaa3344);
bmp1.attachBitmap(bmpData1, 2, "auto", true);
If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
used in this example.

attachMovie (MovieClip.attachMovie method)

public attachMovie(id:String, name:String, depth:Number,
[initObject:Object]) : MovieClip
Takes a symbol from the library and attaches it to the movie clip. Use
MovieClip.removeMovieClip()
attached with
attachMovie()
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Availability: ActionScript 1.0; Flash Player 5
- A transparent or opaque bitmap image.
[optional] - The pixel snapping modes are
.
auto
[optional] - The smoothing mode is either
MovieClip.getNextHighestDepth()
or
MovieClip.unloadMovie()
method.
,
, and
auto
always
for enabled or
true
false
method, which is
to remove a SWF file
MovieClip
829

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