MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 561

Actionscript language reference
Table of Contents

Advertisement

Returns
A reference to the newly created instance.
Description
Method; takes a symbol from the library and attaches it to the SWF file on the Stage specified by
. Use
my_mc
MovieClip.removeMovieClip()
file attached with
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Example
The following example attaches the symbol with the linkage identifier "circle" to the movie clip
instance, which is on the Stage in the SWF file:
this.attachMovie("circle", "circle1_mc", this.getNextHighestDepth());
this.attachMovie("circle", "circle2_mc", this.getNextHighestDepth(), {_x:100,
_y:100});
See also
MovieClip.removeMovieClip(), MovieClip.unloadMovie(),
MovieClip.beginFill()
Availability
Flash Player 6.
Usage
my_mc.beginFill([rgb:Number[, alpha:Number]]) : Void
Parameter
A hex color value (for example, red is 0xFF0000, blue is 0x0000FF, and so on). If this value
rgb
is not provided or is undefined, a fill is not created.
An integer between 0–100 that specifies the alpha value of the fill. If this value is not
alpha
provided, 100 (solid) is used. If the value is less than 0, Flash uses 0. If the value is greater than
100, Flash uses 100.
Returns
Nothing.
Description
Method; indicates the beginning of a new drawing path. If an open path exists (that is, if the
current drawing position does not equal the previous position specified in a
MovieClip.moveTo()
and then filled. This is similar to what happens when
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
.
attachMovie()
method) and it has a fill associated with it, that path is closed with a line
or
MovieClip.unloadMovie()
removeMovieClip()
MovieClip.endFill()
to remove a SWF
is called.
MovieClip.beginFill()
561

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flex

Table of Contents