03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

if (this.hitTest(circle_mc)) {<br />

trace("you hit the circle");<br />

}<br />

};<br />

See also<br />

getBounds (MovieClip.getBounds method), globalToLocal<br />

(MovieClip.globalToLocal method), localToGlobal (MovieClip.localToGlobal<br />

method)<br />

lineStyle (MovieClip.lineStyle method)<br />

public lineStyle(thickness:Number, rgb:Number, alpha:Number,<br />

pixelHinting:Boolean, noScale:String, capsStyle:String,<br />

jointStyle:String, miterLimit:Number) : Void<br />

Specifies a line style that Flash uses for subsequent calls to lineTo() <strong>and</strong> curveTo() until you<br />

call lineStyle() with different parameters. You can call lineStyle() in the middle of<br />

drawing a path to specify different styles for different line segments within a path.<br />

Note: Calls to clear() set the line style back to undefined.<br />

You can extend the methods <strong>and</strong> event h<strong>and</strong>lers of the MovieClip class by creating a subclass.<br />

Parameters<br />

thickness:Number - An integer that indicates the thickness of the line in points; valid values<br />

are 0 to 255. If a number is not specified, or if the parameter is undefined, a line is not<br />

drawn. If a value of less than 0 is passed, Flash uses 0. The value 0 indicates hairline thickness;<br />

the maximum thickness is 255. If a value greater than 255 is passed, the Flash interpreter uses<br />

255.<br />

rgb:Number - A hex color value (for example, red is 0xFF0000, blue is 0x0000FF, <strong>and</strong> so on)<br />

of the line. If a value isn't indicated, Flash uses 0x000000 (black).<br />

alpha:Number - An integer that indicates the alpha value of the line's color; valid values are 0<br />

to 100. If a value isn't indicated, Flash uses 100 (solid). If the value is less than 0, Flash uses 0;<br />

if the value is greater than 100, Flash uses 100.<br />

pixelHinting:Boolean -<br />

noScale:String -<br />

capsStyle:String -<br />

jointStyle:String -<br />

miterLimit:Number -<br />

MovieClip 439

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!