MovieClip.beginFill()
489
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.
on (release) {
thing.attachMovie( "circle", "circle1", 2 );
}
See also
MovieClip.removeMovieClip()
,
MovieClip.unloadMovie()
,
Object.registerClass()
,
removeMovieClip()
MovieClip.beginFill()
Availability
Flash Player 6.
Usage
my_mc
.beginFill([
rgb
[,
alpha
]])
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
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
endFill()
is called. If no fill is currently associated with the path,
endFill()
must be called in order to apply the fill.
See also
MovieClip.beginGradientFill()
,
MovieClip.endFill()
Summary of Contents for FLASH MX 2004 - ACTIONSCRIPT
Page 1: ...ActionScript Reference Guide...
Page 8: ...8 Contents...
Page 12: ......
Page 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Page 54: ...54 Chapter 2 ActionScript Basics...
Page 80: ...80 Chapter 3 Writing and Debugging Scripts...
Page 82: ......
Page 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Page 112: ......
Page 120: ...120 Chapter 6 Using the Built In Classes...
Page 176: ......
Page 192: ...192 Chapter 10 Working with External Data...
Page 202: ...202 Chapter 11 Working with External Media...
Page 204: ......
Page 782: ...782 Chapter 12 ActionScript Dictionary...
Page 793: ...Other keys 793 221 222 Key Key code...
Page 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Page 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Page 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Page 816: ...816 Index...