MovieClip.beginFill()
561
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
my_mc
. Use
MovieClip.removeMovieClip()
or
MovieClip.unloadMovie()
to remove a SWF
file attached with
attachMovie()
.
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()
,
removeMovieClip()
MovieClip.beginFill()
Availability
Flash Player 6.
Usage
my_mc
.beginFill([
rgb:Number
[,
alpha:Number
]])
: Void
Parameter
rgb
A hex color value (for example, red is 0xFF0000, blue is 0x0000FF, and so on). If this value
is not provided or is undefined, a fill is not created.
alpha
An integer between 0–100 that specifies the alpha value of the fill. 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.
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()
method) and it has a fill associated with it, that path is closed with a line
and then filled. This is similar to what happens when
MovieClip.endFill()
is called.
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Содержание FLEX-FLEX ACTIONSCRIPT LANGUAGE
Страница 1: ...Flex ActionScript Language Reference...
Страница 8: ......
Страница 66: ...66 Chapter 2 Creating Custom Classes with ActionScript 2 0...
Страница 76: ......
Страница 133: ...break 133 See also for for in do while while switch case continue throw try catch finally...
Страница 135: ...case 135 See also break default strict equality switch...
Страница 146: ...146 Chapter 5 ActionScript Core Language Elements See also break continue while...
Страница 229: ...while 229 i 3 The following result is written to the log file 0 3 6 9 12 15 18 See also do while continue for for in...
Страница 808: ...808 Chapter 7 ActionScript for Flash...
Страница 810: ...810 Appendix A Deprecated Flash 4 operators...
Страница 815: ...Other keys 815 Num Lock 144 186 187 _ 189 191 192 219 220 221 222 Key Key code...
Страница 816: ...816 Appendix B Keyboard Keys and Key Code Values...
Страница 822: ...822 Index...