Beginfill (Movieclip.beginfill Method) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

initObject:Object
containing properties with which to populate the newly attached movie clip. This parameter
allows dynamically created movie clips to receive clip parameters. If
object, it is ignored. All properties of
properties specified with
Returns
- A reference to the newly created instance.
MovieClip
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
removeMovieClip (MovieClip.removeMovieClip method)
(MovieClip.unloadMovie method)

beginFill (MovieClip.beginFill method)

public beginFill(rgb:Number, [alpha:Number]) : Void
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
method) and a fill is associated with it, that path is closed with a line 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.
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
- A hex color value (for example, red is 0xFF0000, blue is 0x0000FF, and so on).
rgb:Number
If this value is not provided or is undefined, a fill is not created.
[optional] - An integer from 0 to 100 that specifies the alpha value of the fill.
alpha:Number
If this value is not 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.
[optional] - (Supported for Flash Player 6 and later) An object
initObject
are available to the constructor function.
initObject
,
removeMovieClip function
MovieClip.endFill()
initObject
are copied into the new instance. The
,
unloadMovie
MovieClip.moveTo()
is called.
is not an
MovieClip
449

Advertisement

Table of Contents
loading

Table of Contents