﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- saved from url=(0014)about:internet -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="book" content="ActionScript&nbsp;3.0&nbsp;Language&nbsp;and&nbsp;Components&nbsp;Reference"><link rel="stylesheet" href="../../style.css" type="text/css" media="screen"><link rel="stylesheet" href="../../print.css" type="text/css" media="print"><link rel="stylesheet" href="../../override.css" type="text/css"><meta name="keywords" content="Graphics,flash.display.Graphics,activate,addChild,addChild,addChildAt,addChildAt,addEventListener,addItem,addItemAt,addSubmenu,addSubmenuAt,applyFilter,areInaccessibleObjectsUnderPoint,assignFocus,beginBitmapFill,beginFill,beginGradientFill,beginShaderFill,cancel,clear,clone,clone,clone,close,close,colorTransform,compare,contains,containsItem,copyChannel,copyFrom,copyPixels,curveTo,curveTo,dispatchEvent,display,dispose,drawCircle,draw,drawEllipse,drawGraphicsData,drawPath,drawRect,drawRoundRect,drawTriangles,endFill,fillRect,floodFill,generateFilterRect,getBounds,getChildAt,getChildByName,getChildIndex,getColorBoundsRect,getItemAt,getItemByName,getItemIndex,getLoaderInfoByDefinition,getObjectsUnderPoint,getPixel32,getPixel,getPixels,getRect,getScreensForRectangle,getVector,globalToLocal3D,globalToLocal,globalToScreen,gotoAndPlay,gotoAndStop,hasEventListener,histogram,hitTestObject,hitTest,hitTestPoint,invalidate,isFocusInaccessible,lineBitmapStyle,lineGradientStyle,lineShaderStyle,lineStyle,lineTo,lineTo,loadBytes,load,local3DToGlobal,localToGlobal,lock,maximize,merge,minimize,moveTo,moveTo,nextFrame,nextScene,noise,notifyUser,orderInBackOf,orderInFrontOf,orderToBack,orderToFront,paletteMap,perlinNoise,pixelDissolve,play,prevFrame,prevScene,removeAllItems,removeChildAt,removeChildAt,removeChild,removeItemAt,removeItem,restore,scroll,setChildIndex,setChildIndex,setItemIndex,setPixel32,setPixel,setPixels,setVector,startDrag,startMove,startResize,start,stopDrag,stop,swapChildrenAt,swapChildrenAt,swapChildren,threshold,toString,unloadAndStop,unload,unlock,wideLineTo,wideMoveTo,willTrigger"><title>flash.display.Graphics (ActionScript 3.0)</title><script src="../../AC_OETags.js" type="text/javascript"></script></head><body><script language="javascript" type="text/javascript" src="../../asdoc.js"></script><script language="javascript" type="text/javascript" src="../../help.js"></script><script language="javascript" type="text/javascript" src="../../cookies.js"></script><script language="javascript" type="text/javascript">  
            <!--  
			    
				asdocTitle = 'Graphics - ActionScript 3.0 Language and Components Reference';

				var baseRef = '../../';

				window.onload = configPage;
			      
			    -->  
            </script>
<script language="javascript" type="text/javascript"><!--
function submitValue(){
var searchStr=document.getElementById('search-livedocs').value;
window.location="../../search.html"+"###"+searchStr;
}
--></script><script type="text/javascript">
		scrollToNameAnchor();
	</script><table class="titleTable" cellpadding="0" cellspacing="0" id="titleTable" style="display:none"><tr><td class="titleTableTitle" align="left">ActionScript 3.0 Language and Components Reference</td><td class="titleTableSearch" align="center"><form class="searchForm" method="get" action="../../search.html" onsubmit="submitValue();"><input class="hidden" name="loc" value="" type="hidden"><input class="hidden" name="termPrefix" value="" type="hidden"><input class="hidden" name="term" value="" type="hidden"><input class="hidden" name="area" value="" type="hidden"><input id="search-livedocs" name="search_text" value="" title="" type="text"> <input type="button" name="action" value="Search" onclick="submitValue()"></form></td><td class="titleTableTopNav" align="right"><a href="../../../../Flash/10.0_Welcome/index.html">Home</a>&nbsp;|&nbsp;<a href="../../package-summary.html" onclick="loadClassListFrame('../../all-classes.html')">All Packages</a>&nbsp;|&nbsp;<a href="../../class-summary.html" onclick="loadClassListFrame('../../all-classes.html')">All Classes</a>&nbsp;|&nbsp;<a href="../../language-elements.html">Language Elements</a>&nbsp;| <a href="../../all-index-Symbols.html" onclick="loadClassListFrame('../../index-list.html')">Index</a>&nbsp;|&nbsp;<a href="../../appendixes.html">Appendixes</a>&nbsp;|&nbsp;<a href="../../conventions.html">Conventions</a>&nbsp;|&nbsp;<a id="framesLink1" href="../../index.html?flash/display/Graphics.html&amp;flash/display/class-list.html">Frames</a><a id="noFramesLink1" style="display:none" href="" onclick="parent.location=document.location"> No Frames </a></td><td class="titleTableLogo" align="right" rowspan="3"><img src="../../images/logo.jpg" class="logoImage" alt=" Adobe Logo " title=" Adobe Logo "></td></tr><tr class="titleTableRow2"><td class="titleTableSubTitle" id="subTitle" align="left">Graphics</td><td class="titleTableSubNav" id="subNav" align="right" colspan="2"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a>&nbsp;| <a href="#eventSummary">Events</a>&nbsp;| <a href="#styleSummary">Styles</a>&nbsp;| <a href="#effectSummary">Effects</a>&nbsp;| <a href="#constantSummary">Constants</a>&nbsp;| <a href="#includeExamplesSummary">Examples</a></td></tr><tr class="titleTableRow3"><td colspan="3">&nbsp;</td></tr></table><script language="javascript" type="text/javascript" xml:space="preserve">
                
                    
                

				<!--

				
				    
				

					if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Graphics"); titleBar_setSubNav(false,true,false	,false,false,false,true,true,false	,false,false,false,false,false);}

				    
				        
				    
				-->
                
                    
                
			</script><div class="MainContent"><table class="classHeaderTable" cellpadding="0" cellspacing="0"><tr><td class="classHeaderTableLabel">Package</td><td><a href="package-detail.html" onclick="javascript:loadClassListFrame('class-list.html')">flash.display</a></td></tr><tr><td class="classHeaderTableLabel">Class</td><td class="classSignature">public final   class  Graphics</td></tr><tr><td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">Graphics  <img src="../../images/inherit-arrow.gif" title="Inheritance" alt="Inheritance" class="inheritArrow"> <a href="../../Object.html">Object</a></td></tr></table><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p></p>
        The Graphics class contains a set of methods that you can use to create a vector shape. 
 Display objects that support drawing include Sprite and Shape objects.
 Each of these classes includes a
        <code>graphics</code>
        property that is a Graphics object. 
 The following are among those helper functions provided for ease of use:
        <code>drawRect()</code>
        ,
        <code>drawRoundRect()</code>
        ,
        <code>drawCircle()</code>
        , and
        <code>drawEllipse()</code>
        .
        <p>
          You cannot create a Graphics object directly from ActionScript code. 
 If you call
          <code>new Graphics()</code>
          , an exception is thrown.
        </p>
        
               <p>The Graphics class is final; it cannot be subclassed.</p>
        
            <p></p><p><a href="#includeExamplesSummary">View the examples</a></p><br/><hr></div><a name="propertySummary"></a><div class="summarySection"><div class="summaryTableTitle">Public Properties</div><div class="showHideLinks"><div id="hideInheritedProperty" class="hideInheritedProperty"><a class="showHideLink" href="#propertySummary" onclick="javascript:setInheritedVisible(false,'Property');"><img class="showHideLinkImage" src="../../images/expanded.gif"> Hide Inherited Public Properties</a></div><div id="showInheritedProperty" class="showInheritedProperty"><a class="showHideLink" href="#propertySummary" onclick="javascript:setInheritedVisible(true,'Property');"><img class="showHideLinkImage" src="../../images/collapsed.gif"> Show Inherited Public Properties</a></div></div><table cellspacing="0" cellpadding="3" class="summaryTable hideInheritedProperty" id="summaryTableProperty"><tr><th>&nbsp;</th><th colspan="2">Property</th><th>Defined By</th></tr><tr class="hideInheritedProperty"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../Object.html#constructor" class="signatureLink">constructor</a> : <a href="../../Object.html">Object</a><div class="summaryTableDescription">A reference to the class object or constructor function for a given object instance.</div></td><td class="summaryTableOwnerCol"><a href="../../Object.html">Object</a></td></tr><tr class="hideInheritedProperty"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="../../Object.html#prototype" class="signatureLink">prototype</a> : <a href="../../Object.html">Object</a><div class="summaryTableDescription">[static] A reference to the prototype object of a class or function object.</div></td><td class="summaryTableOwnerCol"><a href="../../Object.html">Object</a></td></tr></table></div><a name="methodSummary"></a><div class="summarySection"><div class="summaryTableTitle">Public Methods </div><div class="showHideLinks"><div id="hideInheritedMethod" class="hideInheritedMethod"><a class="showHideLink" href="#methodSummary" onclick="javascript:setInheritedVisible(false,'Method');"><img class="showHideLinkImage" src="../../images/expanded.gif"> Hide Inherited Public Methods</a></div><div id="showInheritedMethod" class="showInheritedMethod"><a class="showHideLink" href="#methodSummary" onclick="javascript:setInheritedVisible(true,'Method');"><img class="showHideLinkImage" src="../../images/collapsed.gif"> Show Inherited Public Methods</a></div></div><table cellspacing="0" cellpadding="3" class="summaryTable " id="summaryTableMethod"><tr><th>&nbsp;</th><th colspan="2">Method</th><th>Defined By</th></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#beginBitmapFill()" class="signatureLink">beginBitmapFill</a>(bitmap:<a href="../../flash/display/BitmapData.html">BitmapData</a>, matrix:<a href="../../flash/geom/Matrix.html">Matrix</a> = null, repeat:<a href="../../Boolean.html">Boolean</a> = true, smooth:<a href="../../Boolean.html">Boolean</a> = false):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Fills a drawing area with a bitmap image.</div></td><td class="summaryTableOwnerCol">Graphics</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#beginFill()" class="signatureLink">beginFill</a>(color:<a href="../../uint.html">uint</a>, alpha:<a href="../../Number.html">Number</a> = 1.0):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Specifies a simple one-color fill that subsequent calls to other 
  Graphics methods (such as lineTo() or drawCircle()) use when drawing.</div></td><td class="summaryTableOwnerCol">Graphics</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#beginGradientFill()" class="signatureLink">beginGradientFill</a>(type:<a href="../../String.html">String</a>, colors:<a href="../../Array.html">Array</a>, alphas:<a href="../../Array.html">Array</a>, ratios:<a href="../../Array.html">Array</a>, matrix:<a href="../../flash/geom/Matrix.html">Matrix</a> = null, spreadMethod:<a href="../../String.html">String</a> = "pad", interpolationMethod:<a href="../../String.html">String</a> = "rgb", focalPointRatio:<a href="../../Number.html">Number</a> = 0):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Specifies a gradient fill used by subsequent calls to other 
  Graphics methods (such as lineTo() or drawCircle()) for the object.</div></td><td class="summaryTableOwnerCol">Graphics</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#beginShaderFill()" class="signatureLink">beginShaderFill</a>(shader:<a href="../../flash/display/Shader.html">Shader</a>, matrix:<a href="../../flash/geom/Matrix.html">Matrix</a> = null):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Specifies a shader fill used by subsequent calls to other Graphics methods
  (such as lineTo() or drawCircle()) for the object.</div></td><td class="summaryTableOwnerCol">Graphics</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#clear()" class="signatureLink">clear</a>():<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Clears the graphics that were drawn to this Graphics object, and resets fill and
     line style settings.</div></td><td class="summaryTableOwnerCol">Graphics</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#copyFrom()" class="signatureLink">copyFrom</a>(sourceGraphics:<a href="../../flash/display/Graphics.html">Graphics</a>):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Copies all of drawing commands from the source Graphics object into the 
  calling Graphics object.</div></td><td class="summaryTableOwnerCol">Graphics</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#curveTo()" class="signatureLink">curveTo</a>(controlX:<a href="../../Number.html">Number</a>, controlY:<a href="../../Number.html">Number</a>, anchorX:<a href="../../Number.html">Number</a>, anchorY:<a href="../../Number.html">Number</a>):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Draws a curve using the current line style from the current drawing position 
  to (anchorX, anchorY) and using the control point that (controlX, 
  controlY) specifies.</div></td><td class="summaryTableOwnerCol">Graphics</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#drawCircle()" class="signatureLink">drawCircle</a>(x:<a href="../../Number.html">Number</a>, y:<a href="../../Number.html">Number</a>, radius:<a href="../../Number.html">Number</a>):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Draws a circle.</div></td><td class="summaryTableOwnerCol">Graphics</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#drawEllipse()" class="signatureLink">drawEllipse</a>(x:<a href="../../Number.html">Number</a>, y:<a href="../../Number.html">Number</a>, width:<a href="../../Number.html">Number</a>, height:<a href="../../Number.html">Number</a>):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Draws an ellipse.</div></td><td class="summaryTableOwnerCol">Graphics</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#drawGraphicsData()" class="signatureLink">drawGraphicsData</a>(graphicsData:<a href="../../Vector.html">Vector</a>.&lt;<a href="../../flash/display/IGraphicsData.html">IGraphicsData</a>&gt;):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Submits a series of IGraphicsData instances for drawing.</div></td><td class="summaryTableOwnerCol">Graphics</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#drawPath()" class="signatureLink">drawPath</a>(commands:<a href="../../Vector.html">Vector</a>.&lt;<a href="../../int.html">int</a>&gt;, data:<a href="../../Vector.html">Vector</a>.&lt;<a href="../../Number.html">Number</a>&gt;, winding:<a href="../../String.html">String</a> = "evenOdd"):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Submits a series of commands for drawing.</div></td><td class="summaryTableOwnerCol">Graphics</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#drawRect()" class="signatureLink">drawRect</a>(x:<a href="../../Number.html">Number</a>, y:<a href="../../Number.html">Number</a>, width:<a href="../../Number.html">Number</a>, height:<a href="../../Number.html">Number</a>):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Draws a rectangle.</div></td><td class="summaryTableOwnerCol">Graphics</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#drawRoundRect()" class="signatureLink">drawRoundRect</a>(x:<a href="../../Number.html">Number</a>, y:<a href="../../Number.html">Number</a>, width:<a href="../../Number.html">Number</a>, height:<a href="../../Number.html">Number</a>, ellipseWidth:<a href="../../Number.html">Number</a>, ellipseHeight:<a href="../../Number.html">Number</a> = NaN):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Draws a rounded rectangle.</div></td><td class="summaryTableOwnerCol">Graphics</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#drawTriangles()" class="signatureLink">drawTriangles</a>(vertices:<a href="../../Vector.html">Vector</a>.&lt;<a href="../../Number.html">Number</a>&gt;, indices:<a href="../../Vector.html">Vector</a>.&lt;<a href="../../int.html">int</a>&gt; = null, uvtData:<a href="../../Vector.html">Vector</a>.&lt;<a href="../../Number.html">Number</a>&gt; = null, culling:<a href="../../String.html">String</a> = "none"):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Renders a set of triangles, typically to distort bitmaps and give them a three-dimensional appearance.</div></td><td class="summaryTableOwnerCol">Graphics</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#endFill()" class="signatureLink">endFill</a>():<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Applies a fill to the lines and curves that were added since the last call to the 
  beginFill(), beginGradientFill(), or 
  beginBitmapFill() method.</div></td><td class="summaryTableOwnerCol">Graphics</td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../Object.html#hasOwnProperty()" class="signatureLink">hasOwnProperty</a>(name:<a href="../../String.html">String</a>):<a href="../../Boolean.html">Boolean</a></div><div class="summaryTableDescription">Indicates whether an object has a specified property defined.</div></td><td class="summaryTableOwnerCol"><a href="../../Object.html">Object</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../Object.html#isPrototypeOf()" class="signatureLink">isPrototypeOf</a>(theClass:<a href="../../Object.html">Object</a>):<a href="../../Boolean.html">Boolean</a></div><div class="summaryTableDescription">Indicates whether an instance of the Object class is in the prototype chain of the object specified 
  as the parameter.</div></td><td class="summaryTableOwnerCol"><a href="../../Object.html">Object</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#lineBitmapStyle()" class="signatureLink">lineBitmapStyle</a>(bitmap:<a href="../../flash/display/BitmapData.html">BitmapData</a>, matrix:<a href="../../flash/geom/Matrix.html">Matrix</a> = null, repeat:<a href="../../Boolean.html">Boolean</a> = true, smooth:<a href="../../Boolean.html">Boolean</a> = false):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Specifies a bitmap to use for the line stroke when drawing lines.</div></td><td class="summaryTableOwnerCol">Graphics</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#lineGradientStyle()" class="signatureLink">lineGradientStyle</a>(type:<a href="../../String.html">String</a>, colors:<a href="../../Array.html">Array</a>, alphas:<a href="../../Array.html">Array</a>, ratios:<a href="../../Array.html">Array</a>, matrix:<a href="../../flash/geom/Matrix.html">Matrix</a> = null, spreadMethod:<a href="../../String.html">String</a> = "pad", interpolationMethod:<a href="../../String.html">String</a> = "rgb", focalPointRatio:<a href="../../Number.html">Number</a> = 0):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Specifies a gradient to use for the stroke when drawing lines.</div></td><td class="summaryTableOwnerCol">Graphics</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#lineShaderStyle()" class="signatureLink">lineShaderStyle</a>(shader:<a href="../../flash/display/Shader.html">Shader</a>, matrix:<a href="../../flash/geom/Matrix.html">Matrix</a> = null):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Specifies a shader to use for the line stroke when drawing lines.</div></td><td class="summaryTableOwnerCol">Graphics</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#lineStyle()" class="signatureLink">lineStyle</a>(thickness:<a href="../../Number.html">Number</a> = NaN, color:<a href="../../uint.html">uint</a> = 0, alpha:<a href="../../Number.html">Number</a> = 1.0, pixelHinting:<a href="../../Boolean.html">Boolean</a> = false, scaleMode:<a href="../../String.html">String</a> = "normal", caps:<a href="../../String.html">String</a> = null, joints:<a href="../../String.html">String</a> = null, miterLimit:<a href="../../Number.html">Number</a> = 3):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Specifies a line style used for subsequent calls to 
  Graphics methods such as the lineTo() method or the drawCircle() method.</div></td><td class="summaryTableOwnerCol">Graphics</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#lineTo()" class="signatureLink">lineTo</a>(x:<a href="../../Number.html">Number</a>, y:<a href="../../Number.html">Number</a>):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Draws a line using the current line style from the current drawing position to (x, y); 
  the current drawing position is then set to (x, y).</div></td><td class="summaryTableOwnerCol">Graphics</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#moveTo()" class="signatureLink">moveTo</a>(x:<a href="../../Number.html">Number</a>, y:<a href="../../Number.html">Number</a>):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Moves the current drawing position to (x, y).</div></td><td class="summaryTableOwnerCol">Graphics</td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../Object.html#propertyIsEnumerable()" class="signatureLink">propertyIsEnumerable</a>(name:<a href="../../String.html">String</a>):<a href="../../Boolean.html">Boolean</a></div><div class="summaryTableDescription">Indicates whether the specified property exists and is enumerable.</div></td><td class="summaryTableOwnerCol"><a href="../../Object.html">Object</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../Object.html#setPropertyIsEnumerable()" class="signatureLink">setPropertyIsEnumerable</a>(name:<a href="../../String.html">String</a>, isEnum:<a href="../../Boolean.html">Boolean</a> = true):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Sets the availability of a dynamic property for loop operations.</div></td><td class="summaryTableOwnerCol"><a href="../../Object.html">Object</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../Object.html#toString()" class="signatureLink">toString</a>():<a href="../../String.html">String</a></div><div class="summaryTableDescription">Returns the string representation of the specified object.</div></td><td class="summaryTableOwnerCol"><a href="../../Object.html">Object</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../Object.html#valueOf()" class="signatureLink">valueOf</a>():<a href="../../Object.html">Object</a></div><div class="summaryTableDescription">Returns the primitive value of the specified object.</div></td><td class="summaryTableOwnerCol"><a href="../../Object.html">Object</a></td></tr></table></div><script language="javascript" type="text/javascript"><!--
                      showHideInherited();
                      --></script><div class="MainContent"><a name="methodDetail"></a><div class="detailSectionHeader">Method Detail</div><a name="beginBitmapFill()"></a><a name="beginBitmapFill(flash.display.BitmapData,flash.geom.Matrix,Boolean,Boolean)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">beginBitmapFill</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td></tr></table><div class="detailBody"><code> public function beginBitmapFill(bitmap:<a href="../../flash/display/BitmapData.html">BitmapData</a>, matrix:<a href="../../flash/geom/Matrix.html">Matrix</a> = null, repeat:<a href="../../Boolean.html">Boolean</a> = true, smooth:<a href="../../Boolean.html">Boolean</a> = false):<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Fills a drawing area with a bitmap image. The bitmap can be repeated or tiled to fill 
  the area. The fill remains in effect until you call the
          <code>beginFill()</code>
          ,
          <code>beginBitmapFill()</code>
          ,
          <code>beginGradientFill()</code>
          , or
          <code>beginShaderFill()</code>
          method. 
  Calling the
          <code>clear()</code>
          method clears the fill.
          <p>
            The application renders the fill whenever three or more points are drawn, or when 
  the
            <code>endFill()</code>
            method is called.
          </p>
          
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">bitmap</span>:<a href="../../flash/display/BitmapData.html">BitmapData</a></code> &mdash; A transparent or opaque bitmap image that contains the bits to be displayed.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">matrix</span>:<a href="../../flash/geom/Matrix.html">Matrix</a></code> (default = <code>null</code>)<code></code> &mdash; 
              A matrix object (of the flash.geom.Matrix class), which you can use to
  define transformations on the bitmap. For example, you can use the following matrix
  to rotate a bitmap by 45 degrees (pi/4 radians):
              <div class="listing"><pre>matrix = new flash.geom.Matrix(); 
  matrix.rotate(Math.PI / 4);</pre></div>
              
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">repeat</span>:<a href="../../Boolean.html">Boolean</a></code> (default = <code>true</code>)<code></code> &mdash; 
              If
              <code>true</code>
              , the bitmap image repeats in a tiled pattern. If
              <code>false</code>
              , the bitmap image does not repeat, and the edges of the bitmap are 
  used for any fill area that extends beyond the bitmap.
              <p>For example, consider the following bitmap (a 20 x 20-pixel checkerboard pattern):</p>
              
              <p>
                <img src="../../images/movieClip_beginBitmapFill_repeat_1.jpg" alt="20 by 20 pixel checkerboard"></img>
              </p>
              
              <p>
                When
                <code>repeat</code>
                is set to
                <code>true</code>
                (as in the following example), the bitmap fill 
  repeats the bitmap:
              </p>
              
              <p>
                <img src="../../images/movieClip_beginBitmapFill_repeat_2.jpg" alt="60 by 60 pixel checkerboard"></img>
              </p>
              
              <p>
                When
                <code>repeat</code>
                is set to
                <code>false</code>
                , the bitmap fill uses the edge
  pixels for the fill area outside the bitmap:
              </p>
              
              <p>
                <img src="../../images/movieClip_beginBitmapFill_repeat_3.jpg" alt="60 by 60 pixel image with no repeating"></img>
              </p>
              
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">smooth</span>:<a href="../../Boolean.html">Boolean</a></code> (default = <code>false</code>)<code></code> &mdash; 
              If
              <code>false</code>
              , upscaled bitmap images are rendered by using a 
  nearest-neighbor algorithm and look pixelated. If
              <code>true</code>
              , upscaled 
     bitmap images are rendered by using a bilinear algorithm. Rendering by using the nearest 
  neighbor algorithm is faster.
            </td></tr></table></p><p><span class="label">See also</span></p><div class="seeAlso"><a href="Graphics.html#endFill()" target="">endFill()</a><br/><a href="Graphics.html#beginFill()" target="">beginFill()</a><br/><a href="Graphics.html#beginGradientFill()" target="">beginGradientFill()</a></div><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example uses an image (
          <code>image1.jpg</code>
          ) that is rotated and repeated to fill in a rectangle.
          <ol><li>
              The image file (
              <code>image1.jpg</code>
              ) is loaded using the
              <code>Loader</code>
              and
              <code>URLRequest</code>
              objects. 
 Here the file is in the same directory as the SWF file. The SWF file needs to be compiled with Local Playback 
 Security set to Access Local Files Only.
            </li><li>
              When the image is loaded (
              <code>Event</code>
              is complete), the
              <code>drawImage()</code>
              method is called. 
 The
              <code>ioErrorHandler()</code>
              method writes a trace comment if the image was not loaded properly.
            </li><li>
              In
              <code>drawImage()</code>
              method, a
              <code>BitmapData</code>
              object is instantiated and its width and height 
 are set to the image (
              <code>image1.jpg</code>
              ). Then the source image is drawn into the BitmapData
 object. Next, a rectangle is drawn in the
              <code>mySprite</code>
              Sprite object and the BitmapData object is used to 
 fill it. Using a
              <code>Matrix</code>
              object, the
              <code>beginBitmapFill()</code>
              method rotates the image 45 degrees, 
 then it begins filling the rectangle with the image until it is finished.
            </li></ol>
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.display.BitmapData;
    import flash.display.Loader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.events.IOErrorEvent;
    import flash.geom.Matrix;

    public class Graphics_beginBitmapFillExample extends Sprite {
 
        private var url:String = "image1.jpg";
        private var loader:Loader = new Loader();

        public function Graphics_beginBitmapFillExample() {

            var request:URLRequest = new URLRequest(url);
            
            loader.load(request);
            loader.contentLoaderInfo.addEventListener(Event.COMPLETE, drawImage);
            loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
        }

        private function drawImage(event:Event):void {

            var mySprite:Sprite = new Sprite();
            var myBitmap:BitmapData = new BitmapData(loader.width, loader.height, false);
  
            myBitmap.draw(loader, new Matrix());
            
            var matrix:Matrix = new Matrix();
            matrix.rotate(Math.PI/4);
            
            mySprite.graphics.beginBitmapFill(myBitmap, matrix, true);
            mySprite.graphics.drawRect(100, 50, 200, 90);
            mySprite.graphics.endFill();
            
            addChild(mySprite);
        }
 
         private function ioErrorHandler(event:IOErrorEvent):void {
            trace("Unable to load image: " + url);
        }
    }   
}</pre></div>
        </div></div><a name="beginFill()"></a><a name="beginFill(uint,Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">beginFill</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function beginFill(color:<a href="../../uint.html">uint</a>, alpha:<a href="../../Number.html">Number</a> = 1.0):<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Specifies a simple one-color fill that subsequent calls to other 
  Graphics methods (such as
          <code>lineTo()</code>
          or
          <code>drawCircle()</code>
          ) use when drawing.
  The fill remains in effect until you call the
          <code>beginFill()</code>
          ,
          <code>beginBitmapFill()</code>
          ,
          <code>beginGradientFill()</code>
          , or
          <code>beginShaderFill()</code>
          method. 
  Calling the
          <code>clear()</code>
          method clears the fill.
          <p>
            The application renders the fill whenever three or more points are drawn, or when 
  the
            <code>endFill()</code>
            method is called.
          </p>
          
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">color</span>:<a href="../../uint.html">uint</a></code> &mdash; The color of the fill (0xRRGGBB).</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">alpha</span>:<a href="../../Number.html">Number</a></code> (default = <code>1.0</code>)<code></code> &mdash; The alpha value of the fill (0.0 to 1.0).</td></tr></table></p><p><span class="label">See also</span></p><div class="seeAlso"><a href="Graphics.html#endFill()" target="">endFill()</a><br/><a href="Graphics.html#beginBitmapFill()" target="">beginBitmapFill()</a><br/><a href="Graphics.html#beginGradientFill()" target="">beginGradientFill()</a></div><br/><span class="label"> Example </span><br/><span class="usage"><a href="../../ExampleInstruct.html"> How to use examples </a></span><br/>
          Please see the
          <a href="Graphics.html#includeExamplesSummary" target="">example</a>
          at the end of this 
     class for an illustration of how to use this method.
        </div><a name="beginGradientFill()"></a><a name="beginGradientFill(String,Array,Array,Array,flash.geom.Matrix,String,String,Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">beginGradientFill</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function beginGradientFill(type:<a href="../../String.html">String</a>, colors:<a href="../../Array.html">Array</a>, alphas:<a href="../../Array.html">Array</a>, ratios:<a href="../../Array.html">Array</a>, matrix:<a href="../../flash/geom/Matrix.html">Matrix</a> = null, spreadMethod:<a href="../../String.html">String</a> = "pad", interpolationMethod:<a href="../../String.html">String</a> = "rgb", focalPointRatio:<a href="../../Number.html">Number</a> = 0):<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Specifies a gradient fill used by subsequent calls to other 
  Graphics methods (such as
          <code>lineTo()</code>
          or
          <code>drawCircle()</code>
          ) for the object.
  The fill remains in effect until you call the
          <code>beginFill()</code>
          ,
          <code>beginBitmapFill()</code>
          ,
          <code>beginGradientFill()</code>
          , or
          <code>beginShaderFill()</code>
          method. 
  Calling the
          <code>clear()</code>
          method clears the fill.
          <p>
            The application renders the fill whenever three or more points are drawn, or when 
  the
            <code>endFill()</code>
            method is called.
          </p>
          
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">type</span>:<a href="../../String.html">String</a></code> &mdash; 
              A value from the GradientType class that 
  specifies which gradient type to use:
              <code>GradientType.LINEAR</code>
              or
              <code>GradientType.RADIAL</code>
              .
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">colors</span>:<a href="../../Array.html">Array</a></code> &mdash; An array of RGB hexadecimal color values used in the gradient; for example,
     red is 0xFF0000, blue is 0x0000FF, and so on. You can specify up to 15 colors. 
     For each color, specify a corresponding value in the alphas and ratios parameters.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">alphas</span>:<a href="../../Array.html">Array</a></code> &mdash; An array of alpha values for the corresponding colors in the colors array; 
     valid values are 0 to 1. If the value is less than 0, the default is 0. If the value is 
     greater than 1, the default is 1.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">ratios</span>:<a href="../../Array.html">Array</a></code> &mdash; 
              An array of color distribution ratios; valid values are 0-255. This value 
  defines the percentage of the width where the color is sampled at 100%. The value 0 represents 
  the left position in the gradient box, and 255 represents the right position in the 
  gradient box.
              <p>
                <b>Note:</b>
                This value represents positions in the gradient box, not the 
  coordinate space of the final gradient, which can be wider or thinner than the gradient box. 
  Specify a value for each value in the
                <code>colors</code>
                parameter.
              </p>
              
              <p>
                For example, for a linear gradient that includes two colors, blue and green, the 
  following example illustrates the placement of the colors in the gradient based on different values
  in the
                <code>ratios</code>
                array:
              </p>
              
              <table class="innertable" ><tr><th>
                        <code>ratios</code>
                      </th><th>Gradient</th></tr><tr><td>
                        <code>[0, 127]</code>
                      </td><td>
                        <img src="../../images/gradient-ratios-1.jpg" alt="linear gradient blue to green with ratios 0 and 127"></img>
                      </td></tr><tr><td>
                        <code>[0, 255]</code>
                      </td><td>
                        <img src="../../images/gradient-ratios-2.jpg" alt="linear gradient blue to green with ratios 0 and 255"></img>
                      </td></tr><tr><td>
                        <code>[127, 255]</code>
                      </td><td>
                        <img src="../../images/gradient-ratios-3.jpg" alt="linear gradient blue to green with ratios 127 and 255"></img>
                      </td></tr></table>
              
              <p>
                The values in the array must increase sequentially; for example,
                <code>[0, 63, 127, 190, 255]</code>
                .
              </p>
              
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">matrix</span>:<a href="../../flash/geom/Matrix.html">Matrix</a></code> (default = <code>null</code>)<code></code> &mdash; 
              A transformation matrix as defined by the 
  flash.geom.Matrix class. The flash.geom.Matrix class includes a
              <code>createGradientBox()</code>
              method, which lets you conveniently set up 
  the matrix for use with the
              <code>beginGradientFill()</code>
              method.
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">spreadMethod</span>:<a href="../../String.html">String</a></code> (default = "<code>pad</code>")<code></code> &mdash; 
              A value from the SpreadMethod class that 
  specifies which spread method to use, either:
              <code>SpreadMethod.PAD</code>
              ,
              <code>SpreadMethod.REFLECT</code>
              , or
              <code>SpreadMethod.REPEAT</code>
              .
              <p>For example, consider a simple linear gradient between two colors:</p>
              
              <div class="listing"><pre>import flash.geom.*
  import flash.display.*
  var fillType:String = GradientType.LINEAR;
  var colors:Array = [0xFF0000, 0x0000FF];
  var alphas:Array = [1, 1];
  var ratios:Array = [0x00, 0xFF];
  var matr:Matrix = new Matrix();
  matr.createGradientBox(20, 20, 0, 0, 0);
  var spreadMethod:String = SpreadMethod.PAD;
  this.graphics.beginGradientFill(fillType, colors, alphas, ratios, matr, spreadMethod);  
  this.graphics.drawRect(0,0,100,100);</pre></div>
              
              <p>
                This example uses
                <code>SpreadMethod.PAD</code>
                for the spread method, and 
  the gradient fill looks like the following:
              </p>
              
              <p>
                <img src="../../images/beginGradientFill_spread_pad.jpg" alt="linear gradient with SpreadMethod.PAD"></img>
              </p>
              
              <p>
                If you use
                <code>SpreadMethod.REFLECT</code>
                for the spread method, the gradient fill  
  looks like the following:
              </p>
              
              <p>
                <img src="../../images/beginGradientFill_spread_reflect.jpg" alt="linear gradient with SpreadMethod.REFLECT"></img>
              </p>
              
              <p>
                If you use
                <code>SpreadMethod.REPEAT</code>
                for the spread method, the gradient fill  
  looks like the following:
              </p>
              
              <p>
                <img src="../../images/beginGradientFill_spread_repeat.jpg" alt="linear gradient with SpreadMethod.REPEAT"></img>
              </p>
              
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">interpolationMethod</span>:<a href="../../String.html">String</a></code> (default = "<code>rgb</code>")<code></code> &mdash; 
              A value from the InterpolationMethod class that 
  specifies which value to use:
              <code>InterpolationMethod.LINEAR_RGB</code>
              or
              <code>InterpolationMethod.RGB</code>
              
              <p>
                For example, consider a simple linear gradient between two colors (with the
                <code>spreadMethod</code>
                parameter set to
                <code>SpreadMethod.REFLECT</code>
                ). The different interpolation methods affect 
  the appearance as follows:
              </p>
              
              <table class="+ topic/table adobe-d/adobetable " ><tr><td align="center">
                        
                        <img src="../../images/beginGradientFill_interp_linearrgb.jpg" alt="linear gradient with InterpolationMethod.LINEAR_RGB"></img>
                        
                      </td><td align="center">
                        
                        <img src="../../images/beginGradientFill_interp_rgb.jpg" alt="linear gradient with InterpolationMethod.RGB"></img>
                        
                      </td></tr><tr><td align="center">
                        <code>InterpolationMethod.LINEAR_RGB</code>
                      </td><td align="center">
                        <code>InterpolationMethod.RGB</code>
                      </td></tr></table>
              
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">focalPointRatio</span>:<a href="../../Number.html">Number</a></code> (default = <code>0</code>)<code></code> &mdash; 
              A number that controls the 
  location of the focal point of the gradient. 0 means that the focal point is in the center. 1 
  means that the focal point is at one border of the gradient circle. -1 means that the focal point 
  is at the other border of the gradient circle. A value less than -1 or greater than
  1 is rounded to -1 or 1. For example, the following example
  shows a
              <code>focalPointRatio</code>
              set to 0.75:
              <p>
                <img src="../../images/radial_sketch.jpg" alt="radial gradient with focalPointRatio set to 0.75"></img>
                
              </p>
              
            </td></tr></table></p><br/><span class="label">Throws</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../ArgumentError.html">ArgumentError</a> </code> &mdash; 
              If the
              <code>type</code>
              parameter is not valid.
            </td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="Graphics.html#endFill()" target="">endFill()</a><br/><a href="Graphics.html#beginFill()" target="">beginFill()</a><br/><a href="Graphics.html#beginBitmapFill()" target="">beginBitmapFill()</a><br/><a href="../../flash/geom/Matrix.html#createGradientBox()" target="">flash.geom.Matrix.createGradientBox()</a><br/><a href="GradientType.html" target="">flash.display.GradientType</a><br/><a href="SpreadMethod.html" target="">flash.display.SpreadMethod</a></div></div><a name="beginShaderFill()"></a><a name="beginShaderFill(flash.display.Shader,flash.geom.Matrix)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">beginShaderFill</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function beginShaderFill(shader:<a href="../../flash/display/Shader.html">Shader</a>, matrix:<a href="../../flash/geom/Matrix.html">Matrix</a> = null):<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p>
          Specifies a shader fill used by subsequent calls to other Graphics methods
  (such as
          <code>lineTo()</code>
          or
          <code>drawCircle()</code>
          ) for the object.
  The fill remains in effect until you call the
          <code>beginFill()</code>
          ,
          <code>beginBitmapFill()</code>
          ,
          <code>beginGradientFill()</code>
          , or
          <code>beginShaderFill()</code>
          method. 
  Calling the
          <code>clear()</code>
          method clears the fill.
          <p>
            The application renders the fill whenever three or more points are drawn, or when 
  the
            <code>endFill()</code>
            method is called.
          </p>
          
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">shader</span>:<a href="../../flash/display/Shader.html">Shader</a></code> &mdash; 
              The shader to use for the fill. This Shader instance is not required to 
  specify an image input. However, if an image input is specified in the shader, the input 
  must be provided manually. To specify the input, set the
              <code>input</code>
              property 
  of the corresponding ShaderInput 
  property of the
              <code>Shader.data</code>
              property.
              <p>When you pass a Shader instance as an argument the shader is copied internally. The 
  drawing fill operation uses that internal copy, not a reference to the original shader. Any changes 
  made to the shader, such as changing a parameter value, input, or bytecode, are not applied 
  to the copied shader that's used for the fill.</p>
              
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">matrix</span>:<a href="../../flash/geom/Matrix.html">Matrix</a></code> (default = <code>null</code>)<code></code> &mdash; 
              A matrix object (of the flash.geom.Matrix class), which you can use to
  define transformations on the shader. For example, you can use the following matrix
  to rotate a shader by 45 degrees (pi/4 radians):
              <div class="listing"><pre>matrix = new flash.geom.Matrix(); 
  matrix.rotate(Math.PI / 4);</pre></div>
              
              <p>
                The coordinates received in the shader are based on the matrix that is specified
  for the
                <code>matrix</code>
                parameter. For a default (
                <code>null</code>
                ) matrix, the 
  coordinates in the shader are local pixel coordinates which can be used to sample an 
  input.
              </p>
              
            </td></tr></table></p><br/><span class="label">Throws</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../ArgumentError.html">ArgumentError</a> </code> &mdash; 
              When the shader output type is not compatible with this operation 
                        (the shader must specify a
              <code>pixel3</code>
              or
              <code>pixel4</code>
              output).
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20"></td><td><code><a href="../../ArgumentError.html">ArgumentError</a> </code> &mdash; When the shader specifies an image input that isn't provided.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20"></td><td><code><a href="../../ArgumentError.html">ArgumentError</a> </code> &mdash; 
              When a ByteArray or Vector.&lt;Number> instance is used as 
                        an input and the
              <code>width</code>
              and
              <code>height</code>
              properties aren't specified for the 
                        ShaderInput, or the specified values don't match the amount of 
                        data in the input object. See the
              <code>ShaderInput.input</code>
              property for more information.
            </td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="Graphics.html#endFill()" target="">endFill()</a><br/><a href="Graphics.html#beginFill()" target="">beginFill()</a><br/><a href="Graphics.html#beginBitmapFill()" target="">beginBitmapFill()</a><br/><a href="Graphics.html#beginGradientFill()" target="">beginGradientFill()</a><br/><a href="ShaderInput.html" target="">flash.display.ShaderInput</a></div></div><a name="clear()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">clear</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function clear():<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>Clears the graphics that were drawn to this Graphics object, and resets fill and
     line style settings.</p></div><a name="copyFrom()"></a><a name="copyFrom(flash.display.Graphics)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">copyFrom</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function copyFrom(sourceGraphics:<a href="../../flash/display/Graphics.html">Graphics</a>):<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p>Copies all of drawing commands from the source Graphics object into the 
  calling Graphics object.</p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">sourceGraphics</span>:<a href="../../flash/display/Graphics.html">Graphics</a></code> &mdash; The Graphics object from which to copy the drawing commands.</td></tr></table></p></div><a name="curveTo()"></a><a name="curveTo(Number,Number,Number,Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">curveTo</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function curveTo(controlX:<a href="../../Number.html">Number</a>, controlY:<a href="../../Number.html">Number</a>, anchorX:<a href="../../Number.html">Number</a>, anchorY:<a href="../../Number.html">Number</a>):<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Draws a curve using the current line style from the current drawing position 
  to (anchorX, anchorY) and using the control point that (
          <code>controlX</code>
          ,
          <code>controlY</code>
          ) specifies. The current drawing position is then set to 
  (
          <code>anchorX</code>
          ,
          <code>anchorY</code>
          ). If the movie clip in which you are 
  drawing contains content created with the Flash drawing tools, calls to the
          <code>curveTo()</code>
          method are drawn underneath this content. If you call the
          <code>curveTo()</code>
          method before any calls to the
          <code>moveTo()</code>
          method, 
  the default of the current drawing position is (0, 0). If any of the parameters are 
  missing, this method fails and the current drawing position is not changed.
          <p>The curve drawn is a quadratic Bezier curve. Quadratic Bezier curves 
  consist of two anchor points and one control point. The curve interpolates the two anchor 
  points and curves toward the control point.</p>
          
          <p>
            <img src="../../images/quad_bezier.jpg" alt="quadratic bezier and cubic bezier"></img>
          </p>
          
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">controlX</span>:<a href="../../Number.html">Number</a></code> &mdash; A number that specifies the horizontal position of the control 
     point relative to the registration point of the parent display object.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">controlY</span>:<a href="../../Number.html">Number</a></code> &mdash; A number that specifies the vertical position of the control 
     point relative to the registration point of the parent display object.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">anchorX</span>:<a href="../../Number.html">Number</a></code> &mdash; A number that specifies the horizontal position of the next anchor 
     point relative to the registration point of the parent display object.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">anchorY</span>:<a href="../../Number.html">Number</a></code> &mdash; A number that specifies the vertical position of the next anchor 
     point relative to the registration point of the parent display object.</td></tr></table></p><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example draws a green circular object with a width and height of 100
 pixels, 250 pixels to the right from the registration point (0, 0) of Sprite display object.
          <p>Draw four curves to produce a circle and fill it green.</p>
          
          <p>
            Note that due to the nature of the quadratic Bezier equation, this is not a perfect circle.
 The best way to draw a circle is to use the Graphics class's
            <code>drawCircle()</code>
            method.
          </p>
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.display.Shape;
    
    public class Graphics_curveToExample1 extends Sprite
    {
        public function Graphics_curveToExample1():void
        {
            var roundObject:Shape = new Shape();

            roundObject.graphics.beginFill(0x00FF00);
            roundObject.graphics.moveTo(250, 0);
            roundObject.graphics.curveTo(300, 0, 300, 50);
            roundObject.graphics.curveTo(300, 100, 250, 100);
            roundObject.graphics.curveTo(200, 100, 200, 50);
            roundObject.graphics.curveTo(200, 0, 250, 0);
            roundObject.graphics.endFill();
            
            this.addChild(roundObject);
        }
    }
}</pre></div>
        </div><br/><div class="detailBody">
          The following example draws a new moon using
          <code>curveTo()</code>
          method.
          <p>
            Two curve lines of 1 pixel are drawn and the space in between is filled white. The
            <code>moveTo()</code>
            method is used to position the current drawing position to coordinates (100, 100). The first curve moves the drawing
 position to (100, 200), its destination point. The second curve returns the position back to 
 the starting position (100, 100), its destination point. The horizontal control points determine 
 the different curve sizes.
          </p>
          
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.display.Shape;

    public class Graphics_curveToExample2 extends Sprite
    {
        public function Graphics_curveToExample2() {
            var newMoon:Shape = new Shape();
            
            newMoon.graphics.lineStyle(1, 0);
            newMoon.graphics.beginFill(0xFFFFFF);
            newMoon.graphics.moveTo(100, 100); 
            newMoon.graphics.curveTo(30, 150, 100, 200);    
            newMoon.graphics.curveTo(50, 150, 100, 100);
            graphics.endFill();
            
            this.addChild(newMoon);
        }
    }
}</pre></div>
        </div></div><a name="drawCircle()"></a><a name="drawCircle(Number,Number,Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">drawCircle</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function drawCircle(x:<a href="../../Number.html">Number</a>, y:<a href="../../Number.html">Number</a>, radius:<a href="../../Number.html">Number</a>):<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Draws a circle. Set the line style, fill, or both before 
  you call the
          <code>drawCircle()</code>
          method, by calling the
          <code>linestyle()</code>
          ,
          <code>lineGradientStyle()</code>
          ,
          <code>beginFill()</code>
          ,
          <code>beginGradientFill()</code>
          , 
  or
          <code>beginBitmapFill()</code>
          method.
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">x</span>:<a href="../../Number.html">Number</a></code> &mdash; 
              The
              <i>x</i>
              location of the center of the circle relative to the 
     registration point of the parent display object (in pixels).
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">y</span>:<a href="../../Number.html">Number</a></code> &mdash; 
              The
              <i>y</i>
              location of the center of the circle relative to the 
     registration point of the parent display object (in pixels).
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">radius</span>:<a href="../../Number.html">Number</a></code> &mdash; The radius of the circle (in pixels).</td></tr></table></p><p><span class="label">See also</span></p><div class="seeAlso"><a href="Graphics.html#drawEllipse()" target="">drawEllipse()</a><br/><a href="Graphics.html#lineStyle()" target="">lineStyle()</a><br/><a href="Graphics.html#lineGradientStyle()" target="">lineGradientStyle()</a><br/><a href="Graphics.html#beginFill()" target="">beginFill()</a><br/><a href="Graphics.html#beginGradientFill()" target="">beginGradientFill()</a><br/><a href="Graphics.html#beginBitmapFill()" target="">beginBitmapFill()</a></div><br/><span class="label"> Example </span><br/><span class="usage"><a href="../../ExampleInstruct.html"> How to use examples </a></span><br/>
          Please see the
          <a href="Graphics.html#includeExamplesSummary" target="">example</a>
          at the end of this 
     class for an illustration of how to use this method.
        </div><a name="drawEllipse()"></a><a name="drawEllipse(Number,Number,Number,Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">drawEllipse</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function drawEllipse(x:<a href="../../Number.html">Number</a>, y:<a href="../../Number.html">Number</a>, width:<a href="../../Number.html">Number</a>, height:<a href="../../Number.html">Number</a>):<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Draws an ellipse. Set the line style, fill, or both before 
  you call the
          <code>drawEllipse()</code>
          method, by calling the
          <code>linestyle()</code>
          ,
          <code>lineGradientStyle()</code>
          ,
          <code>beginFill()</code>
          ,
          <code>beginGradientFill()</code>
          , 
  or
          <code>beginBitmapFill()</code>
          method.
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">x</span>:<a href="../../Number.html">Number</a></code> &mdash; 
              The
              <i>x</i>
              location of the top-left of the bounding-box of the ellipse relative to the 
 registration point of the parent display object (in pixels).
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">y</span>:<a href="../../Number.html">Number</a></code> &mdash; 
              The
              <i>y</i>
              location of the top left of the bounding-box of the ellipse relative to the 
 registration point of the parent display object (in pixels).
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">width</span>:<a href="../../Number.html">Number</a></code> &mdash; The width of the ellipse (in pixels).</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">height</span>:<a href="../../Number.html">Number</a></code> &mdash; The height of the ellipse (in pixels).</td></tr></table></p><p><span class="label">See also</span></p><div class="seeAlso"><a href="Graphics.html#drawCircle()" target="">drawCircle()</a><br/><a href="Graphics.html#lineStyle()" target="">lineStyle()</a><br/><a href="Graphics.html#lineGradientStyle()" target="">lineGradientStyle()</a><br/><a href="Graphics.html#beginFill()" target="">beginFill()</a><br/><a href="Graphics.html#beginGradientFill()" target="">beginGradientFill()</a><br/><a href="Graphics.html#beginBitmapFill()" target="">beginBitmapFill()</a></div><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example uses the function
          <code>drawEgg()</code>
          to draw three different sized eggs 
 (three sizes of ellipses), depending on the
          <code>eggSize</code>
          parameter.
          <ol><li>
              The constructor calls the function
              <code>drawEgg()</code>
              and passes the horizontal and vertical parameters for 
 where the egg should be drawn, plus the type of egg (
              <code>eggSize</code>
              ). (The height and width of the 
 eggs (the ellipses) can be used to decide where to display them.)
            </li><li>
              Function
              <code>drawEgg()</code>
              draws the different size ellipses and fills them white using
              <code>beginFill()</code>
              method. There is no advance error handling written for his function.
            </li></ol>
          
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.display.Shape;

    public class Graphics_drawEllipseExample extends Sprite
    {
        public static const SMALL:uint = 0;
        public static const MEDIUM:uint = 1;
        public static const LARGE:uint = 2;

        public function Graphics_drawEllipseExample()
        {
            drawEgg(SMALL, 0, 100);
            drawEgg(MEDIUM, 100, 60);
            drawEgg(LARGE, 250, 35);    
        }

        public function drawEgg(eggSize:uint, x:Number, y:Number):void  {
            
            var myEgg:Shape = new Shape();
            
            myEgg.graphics.beginFill(0xFFFFFF);
            myEgg.graphics.lineStyle(1);

            switch(eggSize) {
                case SMALL:
                    myEgg.graphics.drawEllipse(x, y, 60, 70);
                    break;
                case MEDIUM:
                    myEgg.graphics.drawEllipse(x, y, 120, 150);    
                    break;
                case LARGE:
                    myEgg.graphics.drawEllipse(x, y, 150, 200);
                    break;
                default:
                    trace ("Wrong size! There is no egg.");
                break;            
            }
            
            myEgg.graphics.endFill();
    
            this.addChild(myEgg);
        }
    }
}</pre></div>
        </div></div><a name="drawGraphicsData()"></a><a name="drawGraphicsData(Vector$flash.display.IGraphicsData)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">drawGraphicsData</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function drawGraphicsData(graphicsData:<a href="../../Vector.html">Vector</a>.&lt;<a href="../../flash/display/IGraphicsData.html">IGraphicsData</a>&gt;):<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p>
          Submits a series of IGraphicsData instances for drawing. This method accepts a Vector containing objects
  including paths, fills, and strokes 
  that implement the IGraphicsData interface. A  
  Vector of IGraphicsData instances can refer to a part of a shape, or a complex fully defined 
  set of data for rendering a complete shape.
          <p>
            Graphics paths can contain other graphics paths. If the
            <code>graphicsData</code>
            Vector 
     includes a path, that path and all its sub-paths are rendered during this operation.
          </p>
          
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">graphicsData</span>:<a href="../../Vector.html">Vector</a>.&lt;<a href="../../flash/display/IGraphicsData.html">IGraphicsData</a>&gt;</code> &mdash; A Vector containing graphics objects, each of which much implement the IGraphicsData interface.</td></tr></table></p><p><span class="label">See also</span></p><div class="seeAlso"><a href="IGraphicsData.html" target="">flash.display.IGraphicsData</a><br/><a href="GraphicsBitmapFill.html" target="">flash.display.GraphicsBitmapFill</a><br/><a href="GraphicsEndFill.html" target="">flash.display.GraphicsEndFill</a><br/><a href="GraphicsGradientFill.html" target="">flash.display.GraphicsGradientFill</a><br/><a href="GraphicsPath.html" target="">flash.display.GraphicsPath</a><br/><a href="GraphicsShaderFill.html" target="">flash.display.GraphicsShaderFill</a><br/><a href="GraphicsSolidFill.html" target="">flash.display.GraphicsSolidFill</a><br/><a href="GraphicsStroke.html" target="">flash.display.GraphicsStroke</a><br/><a href="GraphicsTrianglePath.html" target="">flash.display.GraphicsTrianglePath</a></div></div><a name="drawPath()"></a><a name="drawPath(Vector$int,Vector$Number,String)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">drawPath</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function drawPath(commands:<a href="../../Vector.html">Vector</a>.&lt;<a href="../../int.html">int</a>&gt;, data:<a href="../../Vector.html">Vector</a>.&lt;<a href="../../Number.html">Number</a>&gt;, winding:<a href="../../String.html">String</a> = "evenOdd"):<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p>
          Submits a series of commands for drawing. The
          <code>drawPath()</code>
          method uses vector arrays to consolidate
  individual
          <code>moveTo()</code>
          ,
          <code>lineTo()</code>
          , and
          <code>curveTo()</code>
          drawing commands
  into a single call. The
          <code>drawPath()</code>
          method parameters combine drawing commands with x- and y-coordinate
  value pairs and a drawing direction. The drawing commands are values from the GraphicsPathCommand class. The
  x- and y-coordinate value pairs are Numbers in an array where each pair defines a coordinate location. The drawing
  direction is a value from the GraphicsPathWinding class.
          <p>
            Generally, drawings render faster with
            <code>drawPath()</code>
            than with
  a series of individual
            <code>lineTo()</code>
            and
            <code>curveTo()</code>
            methods.
          </p>
          
          <p>
            The
            <code>drawPath()</code>
            method uses a uses a floating computation so rotation and scaling 
     of shapes is more accurate and gives better results. However, curves submitted using the
            <code>drawPath()</code>
            method can have small sub-pixel alignment errors when used in conjunction 
     with the
            <code>lineTo()</code>
            and
            <code>curveTo()</code>
            methods.
          </p>
          
          <p>
            The
            <code>drawPath()</code>
            method also uses slightly different rules for filling and drawing lines.
     They are:
          </p>
          
          <ul><li>
              When a fill is applied to rendering a path:
              <ul><li>A sub-path of less than 3 points is not rendered. (But note that the stroke rendering will 
              still occur, consistent with the rules for strokes below.)</li><li>A sub-path that isn't closed (the end point is not equal to the begin point) is implicitly 
              closed.</li></ul>
              
            </li><li>
              When a stroke is applied to rendering a path:
              <ul><li>The sub-paths can be composed of any number of points.</li><li>The sub-path is never implicitly closed.</li></ul>
              
            </li></ul>
          
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">commands</span>:<a href="../../Vector.html">Vector</a>.&lt;<a href="../../int.html">int</a>&gt;</code> &mdash; A Vector of integers representing commands defined by the GraphicsPathCommand class. The
     GraphicsPathCommand class maps commands to numeric identifiers for this vector array.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">data</span>:<a href="../../Vector.html">Vector</a>.&lt;<a href="../../Number.html">Number</a>&gt;</code> &mdash; 
              A Vector of Numbers where each pair of numbers is treated as a coordinate location (an x, y pair).
     The x- and y-coordinate value pairs are not Point objects; the
              <code>data</code>
              vector is 
  a series of numbers where each group of two numbers represents a coordinate location.
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">winding</span>:<a href="../../String.html">String</a></code> (default = "<code>evenOdd</code>")<code></code> &mdash; Specifies the winding rule using a value defined in the GraphicsPathWinding class.</td></tr></table></p><p><span class="label">See also</span></p><div class="seeAlso"><a href="GraphicsPathCommand.html" target="">flash.display.GraphicsPathCommand</a><br/><a href="GraphicsPathWinding.html" target="">flash.display.GraphicsPathWinding</a></div><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example populates two Vector objects, then passes them to the
          <code>drawPath()</code>
          method to render a blue star. The first Vector,
          <code>star_commands</code>
          , contains a series of
 integers representing drawing commands from the flash.display.GraphicsPathCommand class,
 where the value 1 is a
          <code>MoveTo()</code>
          command and the value 2 is a
          <code>LineTo()</code>
          command. The second Vector,
          <code>star_coord</code>
          , contains 5 sets of x- and y-coordinate pairs.
 The
          <code>drawPath()</code>
          method matches the commands with the positions to draw a star.
          <div class="listing"><pre>package{
    import flash.display.*;
    
    public class DrawPathExample extends Sprite {

    public function DrawPathExample(){

    var star_commands:Vector.&lt;int&gt; = new Vector.&lt;int&gt;(5, true);
    
    star_commands[0] = 1;
    star_commands[1] = 2;
    star_commands[2] = 2;
    star_commands[3] = 2;
    star_commands[4] = 2;

    var star_coord:Vector.&lt;Number&gt; = new Vector.&lt;Number&gt;(10, true);
    star_coord[0] = 66; //x
    star_coord[1] = 10; //y 
    star_coord[2] = 23; 
    star_coord[3] = 127; 
    star_coord[4] = 122; 
    star_coord[5] = 50; 
    star_coord[6] = 10; 
    star_coord[7] = 49; 
    star_coord[8] = 109; 
    star_coord[9] = 127;


    graphics.beginFill(0x003366);
    graphics.drawPath(star_commands, star_coord);

    }

    }
}</pre></div>
          
          <b>Note:</b>
          By default, the
          <code>drawPath()</code>
          method uses the even-odd winding type. So,
 the center of the star is not filled. Specify the non-zero winding type for the third parameter
 and it fills the center of the star:
          <div class="listing"><pre>graphics.drawPath(star_commands, star_coord, GraphicsPathWinding.NON_ZERO);</pre></div>
          
        </div></div><a name="drawRect()"></a><a name="drawRect(Number,Number,Number,Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">drawRect</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function drawRect(x:<a href="../../Number.html">Number</a>, y:<a href="../../Number.html">Number</a>, width:<a href="../../Number.html">Number</a>, height:<a href="../../Number.html">Number</a>):<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Draws a rectangle. Set the line style, fill, or both before 
  you call the
          <code>drawRect()</code>
          method, by calling the
          <code>linestyle()</code>
          ,
          <code>lineGradientStyle()</code>
          ,
          <code>beginFill()</code>
          ,
          <code>beginGradientFill()</code>
          , 
  or
          <code>beginBitmapFill()</code>
          method.
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">x</span>:<a href="../../Number.html">Number</a></code> &mdash; A number indicating the horizontal position relative to the 
     registration point of the parent display object (in pixels).</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">y</span>:<a href="../../Number.html">Number</a></code> &mdash; A number indicating the vertical position relative to the 
     registration point of the parent display object (in pixels).</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">width</span>:<a href="../../Number.html">Number</a></code> &mdash; The width of the rectangle (in pixels).</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">height</span>:<a href="../../Number.html">Number</a></code> &mdash; The height of the rectangle (in pixels).</td></tr></table></p><br/><span class="label">Throws</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../ArgumentError.html">ArgumentError</a> </code> &mdash; 
              If the
              <code>width</code>
              or
              <code>height</code>
              parameters 
  are not a number (
              <code>Number.NaN</code>
              ).
            </td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="Graphics.html#lineStyle()" target="">lineStyle()</a><br/><a href="Graphics.html#lineGradientStyle()" target="">lineGradientStyle()</a><br/><a href="Graphics.html#beginFill()" target="">beginFill()</a><br/><a href="Graphics.html#beginGradientFill()" target="">beginGradientFill()</a><br/><a href="Graphics.html#beginBitmapFill()" target="">beginBitmapFill()</a><br/><a href="Graphics.html#drawRoundRect()" target="">drawRoundRect()</a></div><br/><span class="label"> Example </span><br/><span class="usage"><a href="../../ExampleInstruct.html"> How to use examples </a></span><br/>
          Please see the
          <a href="Graphics.html#includeExamplesSummary" target="">example</a>
          at the end of this 
     class for an illustration of how to use this method.
        </div><a name="drawRoundRect()"></a><a name="drawRoundRect(Number,Number,Number,Number,Number,Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">drawRoundRect</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function drawRoundRect(x:<a href="../../Number.html">Number</a>, y:<a href="../../Number.html">Number</a>, width:<a href="../../Number.html">Number</a>, height:<a href="../../Number.html">Number</a>, ellipseWidth:<a href="../../Number.html">Number</a>, ellipseHeight:<a href="../../Number.html">Number</a> = NaN):<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Draws a rounded rectangle. Set the line style, fill, or both before 
  you call the
          <code>drawRoundRect()</code>
          method, by calling the
          <code>linestyle()</code>
          ,
          <code>lineGradientStyle()</code>
          ,
          <code>beginFill()</code>
          ,
          <code>beginGradientFill()</code>
          , or
          <code>beginBitmapFill()</code>
          method.
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">x</span>:<a href="../../Number.html">Number</a></code> &mdash; A number indicating the horizontal position relative to the 
     registration point of the parent display object (in pixels).</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">y</span>:<a href="../../Number.html">Number</a></code> &mdash; A number indicating the vertical position relative to the 
     registration point of the parent display object (in pixels).</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">width</span>:<a href="../../Number.html">Number</a></code> &mdash; The width of the round rectangle (in pixels).</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">height</span>:<a href="../../Number.html">Number</a></code> &mdash; The height of the round rectangle (in pixels).</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">ellipseWidth</span>:<a href="../../Number.html">Number</a></code> &mdash; The width of the ellipse used to draw the rounded corners (in pixels).</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">ellipseHeight</span>:<a href="../../Number.html">Number</a></code> (default = <code>NaN</code>)<code></code> &mdash; 
              The height of the ellipse used to draw the rounded corners (in pixels). 
     Optional; if no value is specified, the default value matches that provided for the
              <code>ellipseWidth</code>
              parameter.
            </td></tr></table></p><br/><span class="label">Throws</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../ArgumentError.html">ArgumentError</a> </code> &mdash; 
              If the
              <code>width</code>
              ,
              <code>height</code>
              ,
              <code>ellipseWidth</code>
              or
              <code>ellipseHeight</code>
              parameters are not a number (
              <code>Number.NaN</code>
              ).
            </td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="Graphics.html#lineStyle()" target="">lineStyle()</a><br/><a href="Graphics.html#lineGradientStyle()" target="">lineGradientStyle()</a><br/><a href="Graphics.html#beginFill()" target="">beginFill()</a><br/><a href="Graphics.html#beginGradientFill()" target="">beginGradientFill()</a><br/><a href="Graphics.html#beginBitmapFill()" target="">beginBitmapFill()</a><br/><a href="Graphics.html#drawRect()" target="">drawRect()</a></div><br/><span class="label"> Example </span><br/><span class="usage"><a href="../../ExampleInstruct.html"> How to use examples </a></span><br/>
          Please see the
          <a href="Graphics.html#includeExamplesSummary" target="">example</a>
          at the end of this 
     class for an illustration of how to use this method.
        </div><a name="drawTriangles()"></a><a name="drawTriangles(Vector$Number,Vector$int,Vector$Number,String)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">drawTriangles</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function drawTriangles(vertices:<a href="../../Vector.html">Vector</a>.&lt;<a href="../../Number.html">Number</a>&gt;, indices:<a href="../../Vector.html">Vector</a>.&lt;<a href="../../int.html">int</a>&gt; = null, uvtData:<a href="../../Vector.html">Vector</a>.&lt;<a href="../../Number.html">Number</a>&gt; = null, culling:<a href="../../String.html">String</a> = "none"):<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p>
          Renders a set of triangles, typically to distort bitmaps and give them a three-dimensional appearance. The
          <code>drawTriangles()</code>
          method maps either the current fill, or a bitmap fill, to the 
     triangle faces using a set of (u,v) coordinates.
          <p>Any type of fill can be used, but if the fill has a transform matrix that 
     transform matrix is ignored.</p>
          
          <p>
            A
            <code>uvtData</code>
            parameter improves texture mapping when a bitmap fill is used.
          </p>
          
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">vertices</span>:<a href="../../Vector.html">Vector</a>.&lt;<a href="../../Number.html">Number</a>&gt;</code> &mdash; 
              A Vector of Numbers where each pair of numbers is treated as a coordinate location (an x, y pair). The
              <code>vertices</code>
              parameter is required.
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">indices</span>:<a href="../../Vector.html">Vector</a>.&lt;<a href="../../int.html">int</a>&gt;</code> (default = <code>null</code>)<code></code> &mdash; 
              A Vector of integers or indexes, where every three indexes define a triangle. If the
              <code>indexes</code>
              parameter
     is null then every three vertices (six x,y pairs in the
              <code>vertices</code>
              Vector) defines a triangle. 
     Otherwise each index refers to a vertex, which is a pair of numbers in the
              <code>vertices</code>
              Vector. 
     For example
              <code>indexes[1]</code>
              refers to (
              <code>vertices[2]</code>
              ,
              <code>vertices[3]</code>
              ).
     The
              <code>indexes</code>
              parameter is optional, but indexes generally reduce the amount of data submitted
     and the amount of data computed.
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">uvtData</span>:<a href="../../Vector.html">Vector</a>.&lt;<a href="../../Number.html">Number</a>&gt;</code> (default = <code>null</code>)<code></code> &mdash; 
              A Vector of normalized coordinates used to apply texture mapping.
     Each coordinate refers to a point on the bitmap used for the fill. 
     You must have one UV or one UVT coordinate per vertex.
     In UV coordinates, (0,0) is the upper left of the bitmap, and (1,1) is the lower right of the bitmap.
              <p>
                If the length of this vector is twice the length of the
                <code>vertices</code>
                vector then normalized 
     coordinates are used without perspective correction.
              </p>
              
              <p>
                If the length of this vector is three times the length of the
                <code>vertices</code>
                vector then the 
     third coordinate is interpreted as 't' (the distance from the eye to the texture in eye space). 
     This helps the rendering engine correctly apply perspective when mapping textures in three dimensions.
              </p>
              
              <p>
                If the
                <code>uvtData</code>
                parameter is null, then normal fill rules (and any fill type) apply.
              </p>
              
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">culling</span>:<a href="../../String.html">String</a></code> (default = "<code>none</code>")<code></code> &mdash; Specifies whether to render triangles that face in a specified direction. This parameter prevents
     the rendering of triangles that cannot be seen in the current view. 
     This parameter can be set to any value defined by the TriangleCulling class.</td></tr></table></p><p><span class="label">See also</span></p><div class="seeAlso"><a href="TriangleCulling.html" target="">flash.display.TriangleCulling</a><br/><a href="GraphicsTrianglePath.html" target="">flash.display.GraphicsTrianglePath</a></div></div><a name="endFill()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">endFill</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function endFill():<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Applies a fill to the lines and curves that were added since the last call to the
          <code>beginFill()</code>
          ,
          <code>beginGradientFill()</code>
          , or
          <code>beginBitmapFill()</code>
          method. Flash uses the fill that was specified in the previous 
  call to the
          <code>beginFill()</code>
          ,
          <code>beginGradientFill()</code>
          , or
          <code>beginBitmapFill()</code>
          method. If the current drawing position does not equal the previous position specified in a
          <code>moveTo()</code>
          method and a fill is defined, the path is closed with a line and then 
  filled.
        </p><p><span class="label">See also</span></p><div class="seeAlso"><a href="Graphics.html#beginFill()" target="">beginFill()</a><br/><a href="Graphics.html#beginBitmapFill()" target="">beginBitmapFill()</a><br/><a href="Graphics.html#beginGradientFill()" target="">beginGradientFill()</a></div></div><a name="lineBitmapStyle()"></a><a name="lineBitmapStyle(flash.display.BitmapData,flash.geom.Matrix,Boolean,Boolean)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">lineBitmapStyle</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function lineBitmapStyle(bitmap:<a href="../../flash/display/BitmapData.html">BitmapData</a>, matrix:<a href="../../flash/geom/Matrix.html">Matrix</a> = null, repeat:<a href="../../Boolean.html">Boolean</a> = true, smooth:<a href="../../Boolean.html">Boolean</a> = false):<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p>
          Specifies a bitmap to use for the line stroke when drawing lines.
          <p>
            The bitmap line style is used for subsequent calls to Graphics 
     methods such as the
            <code>lineTo()</code>
            method or the
            <code>drawCircle()</code>
            method.
     The line style remains in effect until you call the
            <code>lineStyle()</code>
            or
            <code>lineGradientStyle()</code>
            methods, or the
            <code>lineBitmapStyle()</code>
            method 
     again with different parameters.
          </p>
          
          <p>
            You can call the
            <code>lineBitmapStyle()</code>
            method in the middle of drawing a path 
     to specify different styles for different line segments within a path.
          </p>
          
          <p>
            Call the
            <code>lineStyle()</code>
            method before you call the
            <code>lineBitmapStyle()</code>
            method to enable a stroke, or else the value of the line style  
     is
            <code>undefined</code>
            .
          </p>
          
          <p>
            Calls to the
            <code>clear()</code>
            method set the line style back to
            <code>undefined</code>
            .
          </p>
          
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">bitmap</span>:<a href="../../flash/display/BitmapData.html">BitmapData</a></code> &mdash; The bitmap to use for the line stroke.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">matrix</span>:<a href="../../flash/geom/Matrix.html">Matrix</a></code> (default = <code>null</code>)<code></code> &mdash; An optional transformation matrix as defined by the flash.geom.Matrix class.
                   The matrix can be used to scale or otherwise manipulate the bitmap before 
                   applying it to the line style.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">repeat</span>:<a href="../../Boolean.html">Boolean</a></code> (default = <code>true</code>)<code></code> &mdash; Whether to repeat the bitmap in a tiled fashion.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">smooth</span>:<a href="../../Boolean.html">Boolean</a></code> (default = <code>false</code>)<code></code> &mdash; Whether smoothing should be applied to the bitmap.</td></tr></table></p><p><span class="label">See also</span></p><div class="seeAlso"><a href="Graphics.html#lineStyle()" target="">lineStyle()</a><br/><a href="Graphics.html#lineGradientStyle()" target="">lineGradientStyle()</a><br/><a href="../../flash/geom/Matrix.html" target="">flash.geom.Matrix</a></div></div><a name="lineGradientStyle()"></a><a name="lineGradientStyle(String,Array,Array,Array,flash.geom.Matrix,String,String,Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">lineGradientStyle</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function lineGradientStyle(type:<a href="../../String.html">String</a>, colors:<a href="../../Array.html">Array</a>, alphas:<a href="../../Array.html">Array</a>, ratios:<a href="../../Array.html">Array</a>, matrix:<a href="../../flash/geom/Matrix.html">Matrix</a> = null, spreadMethod:<a href="../../String.html">String</a> = "pad", interpolationMethod:<a href="../../String.html">String</a> = "rgb", focalPointRatio:<a href="../../Number.html">Number</a> = 0):<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Specifies a gradient to use for the stroke when drawing lines.
          <p>
            The gradient line style is used for subsequent calls to Graphics 
     methods such as the
            <code>lineTo()</code>
            methods or the
            <code>drawCircle()</code>
            method.
     The line style remains in effect until you call the
            <code>lineStyle()</code>
            or
            <code>lineBitmapStyle()</code>
            methods, or the
            <code>lineGradientStyle()</code>
            method 
     again with different parameters.
          </p>
          
          <p>
            You can call the
            <code>lineGradientStyle()</code>
            method in the middle of drawing a path 
     to specify different styles for different line segments within a path.
          </p>
          
          <p>
            Call the
            <code>lineStyle()</code>
            method before you call the
            <code>lineGradientStyle()</code>
            method to enable a stroke, or else the value of the line style  
     is
            <code>undefined</code>
            .
          </p>
          
          <p>
            Calls to the
            <code>clear()</code>
            method set the line style back to
            <code>undefined</code>
            .
          </p>
          
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">type</span>:<a href="../../String.html">String</a></code> &mdash; A value from the GradientType class that 
  specifies which gradient type to use, either GradientType.LINEAR or GradientType.RADIAL.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">colors</span>:<a href="../../Array.html">Array</a></code> &mdash; An array of RGB hex color values to be used in the gradient (for example, 
  red is 0xFF0000, blue is 0x0000FF, and so on).</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">alphas</span>:<a href="../../Array.html">Array</a></code> &mdash; An array of alpha values for the corresponding colors in the colors array; 
     valid values are 0 to 1. If the value is less than 0, the default is 0. If the value is 
     greater than 1, the default is 1.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">ratios</span>:<a href="../../Array.html">Array</a></code> &mdash; 
              An array of color distribution ratios; valid values are from 0 to 255. This value 
  defines the percentage of the width where the color is sampled at 100%. The value 0 represents 
  the left position in the gradient box, and 255 represents the right position in the 
  gradient box. This value represents positions in the gradient box, not the 
  coordinate space of the final gradient, which can be wider or thinner than the gradient box. 
  Specify a value for each value in the
              <code>colors</code>
              parameter.
              <p>
                For example, for a linear gradient that includes two colors, blue and green, the 
  following figure illustrates the placement of the colors in the gradient based on different values
  in the
                <code>ratios</code>
                array:
              </p>
              
              <table class="innertable" ><tr><th>
                        <code>ratios</code>
                      </th><th>Gradient</th></tr><tr><td>
                        <code>[0, 127]</code>
                      </td><td>
                        <img src="../../images/gradient-ratios-1.jpg" alt="linear gradient blue to green with ratios 0 and 127"></img>
                      </td></tr><tr><td>
                        <code>[0, 255]</code>
                      </td><td>
                        <img src="../../images/gradient-ratios-2.jpg" alt="linear gradient blue to green with ratios 0 and 255"></img>
                      </td></tr><tr><td>
                        <code>[127, 255]</code>
                      </td><td>
                        <img src="../../images/gradient-ratios-3.jpg" alt="linear gradient blue to green with ratios 127 and 255"></img>
                      </td></tr></table>
              
              <p>
                The values in the array must increase, sequentially; for example,
                <code>[0, 63, 127, 190, 255]</code>
                .
              </p>
              
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">matrix</span>:<a href="../../flash/geom/Matrix.html">Matrix</a></code> (default = <code>null</code>)<code></code> &mdash; 
              A transformation matrix as defined by the 
  flash.geom.Matrix class. The flash.geom.Matrix class includes a
              <code>createGradientBox()</code>
              method, which lets you conveniently set up 
  the matrix for use with the
              <code>lineGradientStyle()</code>
              method.
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">spreadMethod</span>:<a href="../../String.html">String</a></code> (default = "<code>pad</code>")<code></code> &mdash; 
              A value from the SpreadMethod class that 
  specifies which spread method to use:
              <p>
                
                <table class="+ topic/table adobe-d/adobetable " ><tr><td align="center">
                          <img src="../../images/beginGradientFill_spread_pad.jpg" alt="linear gradient with SpreadMethod.PAD"></img>
                        </td><td align="center">
                          <img src="../../images/beginGradientFill_spread_reflect.jpg" alt="linear gradient with SpreadMethod.REFLECT"></img>
                        </td><td align="center">
                          <img src="../../images/beginGradientFill_spread_repeat.jpg" alt="linear gradient with SpreadMethod.REPEAT"></img>
                        </td></tr><tr><td align="center">
                          <code>SpreadMethod.PAD</code>
                        </td><td align="center">
                          <code>SpreadMethod.REFLECT</code>
                        </td><td align="center">
                          <code>SpreadMethod.REPEAT</code>
                        </td></tr></table>
                
              </p>
              
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">interpolationMethod</span>:<a href="../../String.html">String</a></code> (default = "<code>rgb</code>")<code></code> &mdash; 
              A value from the InterpolationMethod class that 
  specifies which value to use. For example, consider a simple linear gradient between two colors (with the
              <code>spreadMethod</code>
              parameter set to
              <code>SpreadMethod.REFLECT</code>
              ). The different interpolation methods affect 
  the appearance as follows:
              <p>
                
                <table class="+ topic/table adobe-d/adobetable " ><tr><td align="center">
                          <img src="../../images/beginGradientFill_interp_linearrgb.jpg" alt="linear gradient with InterpolationMethod.LINEAR_RGB"></img>
                        </td><td align="center">
                          <img src="../../images/beginGradientFill_interp_rgb.jpg" alt="linear gradient with InterpolationMethod.RGB"></img>
                        </td></tr><tr><td align="center">
                          <code>InterpolationMethod.LINEAR_RGB</code>
                        </td><td align="center">
                          <code>InterpolationMethod.RGB</code>
                        </td></tr></table>
                
              </p>
              
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">focalPointRatio</span>:<a href="../../Number.html">Number</a></code> (default = <code>0</code>)<code></code> &mdash; 
              A number that controls the location of the focal
  point of the gradient. The value 0 means the focal point is in the center. The value 1 means the focal   
  point is at one border of the gradient circle. The value -1 means that the focal point is 
     at the other border of the gradient circle. Values less than -1 or greater than 1 are
  rounded to -1 or 1. The following image shows a gradient with a
              <code>focalPointRatio</code>
              of -0.75:
              <p>
                <img src="../../images/radial_sketch.jpg" alt="radial gradient with focalPointRatio set to 0.75"></img>
                
              </p>
              
            </td></tr></table></p><p><span class="label">See also</span></p><div class="seeAlso"><a href="Graphics.html#lineStyle()" target="">lineStyle()</a><br/><a href="Graphics.html#lineBitmapStyle()" target="">lineBitmapStyle()</a><br/><a href="../../flash/geom/Matrix.html#createGradientBox()" target="">flash.geom.Matrix.createGradientBox()</a><br/><a href="GradientType.html" target="">flash.display.GradientType</a><br/><a href="SpreadMethod.html" target="">flash.display.SpreadMethod</a></div><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example draws a rectangle and a circle that use 
 a gradient stroke from red to green to blue.
          <p>
            The method
            <code>createGradientBox()</code>
            from the
            <code>Matrix</code>
            class is used to define the 
 gradient box to 200 width and 40 height. The thickness of line is set to 5 pixels. Thickness of the stroke
 must be defined for
            <code>lineGradientStyle()</code>
            method. The gradient is set to linear. Colors for the
 gradient are set to red, green, and blue. Transparency (alpha value) for the colors is set to 1 (opaque). 
 The distribution of gradient is even, where the colors are sampled at 100% at 0 (left-hand position in the 
 gradient box), 128 (middle in the box) and 255 (right-hand position in the box). The width of the rectangle 
 encompasses all the spectrum of the gradient, while the circle encompasses 50% from the middle of the spectrum.
          </p>
          
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.display.Shape;
    import flash.geom.Matrix; 
    import flash.display.GradientType;
    
    public class Graphics_lineGradientStyleExample extends Sprite
    {
        public function Graphics_lineGradientStyleExample()
        {
            var myShape:Shape = new Shape();
            var gradientBoxMatrix:Matrix = new Matrix();
  
            gradientBoxMatrix.createGradientBox(200, 40, 0, 0, 0);  
            
            myShape.graphics.lineStyle(5);
  
            myShape.graphics.lineGradientStyle(GradientType.LINEAR, [0xFF0000,
            0x00FF00, 0x0000FF], [1, 1, 1], [0, 128, 255], gradientBoxMatrix);
            
            myShape.graphics.drawRect(0, 0, 200, 40);
            myShape.graphics.drawCircle(100, 120, 50);  
             
            this.addChild(myShape);
    
        }
    }
}</pre></div>
        </div></div><a name="lineShaderStyle()"></a><a name="lineShaderStyle(flash.display.Shader,flash.geom.Matrix)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">lineShaderStyle</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function lineShaderStyle(shader:<a href="../../flash/display/Shader.html">Shader</a>, matrix:<a href="../../flash/geom/Matrix.html">Matrix</a> = null):<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p>
          Specifies a shader to use for the line stroke when drawing lines.
          <p>
            The shader line style is used for subsequent calls to Graphics 
     methods such as the
            <code>lineTo()</code>
            method or the
            <code>drawCircle()</code>
            method.
     The line style remains in effect until you call the
            <code>lineStyle()</code>
            or
            <code>lineGradientStyle()</code>
            methods, or the
            <code>lineBitmapStyle()</code>
            method 
     again with different parameters.
          </p>
          
          <p>
            You can call the
            <code>lineShaderStyle()</code>
            method in the middle of drawing a path 
     to specify different styles for different line segments within a path.
          </p>
          
          <p>
            Call the
            <code>lineStyle()</code>
            method before you call the
            <code>lineShaderStyle()</code>
            method to enable a stroke, or else the value of the line style  
     is
            <code>undefined</code>
            .
          </p>
          
          <p>
            Calls to the
            <code>clear()</code>
            method set the line style back to
            <code>undefined</code>
            .
          </p>
          
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">shader</span>:<a href="../../flash/display/Shader.html">Shader</a></code> &mdash; The shader to use for the line stroke.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">matrix</span>:<a href="../../flash/geom/Matrix.html">Matrix</a></code> (default = <code>null</code>)<code></code> &mdash; An optional transformation matrix as defined by the flash.geom.Matrix class.
                   The matrix can be used to scale or otherwise manipulate the bitmap before 
                   applying it to the line style.</td></tr></table></p><p><span class="label">See also</span></p><div class="seeAlso"><a href="Graphics.html#lineStyle()" target="">lineStyle()</a><br/><a href="Graphics.html#lineBitmapStyle()" target="">lineBitmapStyle()</a><br/><a href="../../flash/geom/Matrix.html" target="">flash.geom.Matrix</a></div></div><a name="lineStyle()"></a><a name="lineStyle(Number,uint,Number,Boolean,String,String,String,Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">lineStyle</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function lineStyle(thickness:<a href="../../Number.html">Number</a> = NaN, color:<a href="../../uint.html">uint</a> = 0, alpha:<a href="../../Number.html">Number</a> = 1.0, pixelHinting:<a href="../../Boolean.html">Boolean</a> = false, scaleMode:<a href="../../String.html">String</a> = "normal", caps:<a href="../../String.html">String</a> = null, joints:<a href="../../String.html">String</a> = null, miterLimit:<a href="../../Number.html">Number</a> = 3):<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Specifies a line style used for subsequent calls to 
  Graphics methods such as the
          <code>lineTo()</code>
          method or the
          <code>drawCircle()</code>
          method. 
  The line style remains in effect until you call the
          <code>lineGradientStyle()</code>
          method, the
          <code>lineBitmapStyle()</code>
          method, or the
          <code>lineStyle()</code>
          method with different parameters.
          <p>
            You can call the
            <code>lineStyle()</code>
            method in the middle of drawing a path to specify different 
  styles for different line segments within the path.
          </p>
          
          <p>
            <b>Note:</b>
            Calls to the
            <code>clear()</code>
            method set the line style back to
            <code>undefined</code>
            .
          </p>
          
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">thickness</span>:<a href="../../Number.html">Number</a></code> (default = <code>NaN</code>)<code></code> &mdash; An integer that indicates the thickness of the line in 
     points; valid values are 0-255. If a number is not specified, or if the 
     parameter is undefined, a line is not drawn. If a value of less than 0 is passed, 
     the default is 0. The value 0 indicates hairline thickness; the maximum thickness 
     is 255. If a value greater than 255 is passed, the default is 255.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">color</span>:<a href="../../uint.html">uint</a></code> (default = <code>0</code>)<code></code> &mdash; A hexadecimal color value of the line; for example, red is 0xFF0000, blue is 
  0x0000FF, and so on. If a value is not indicated, the default is 0x000000 (black). Optional.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">alpha</span>:<a href="../../Number.html">Number</a></code> (default = <code>1.0</code>)<code></code> &mdash; A number that indicates the alpha value of the color of the line; 
     valid values are 0 to 1. If a value is not indicated, the default is 1 (solid). If 
     the value is less than 0, the default is 0. If the value is greater than 1, the default is 1.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">pixelHinting</span>:<a href="../../Boolean.html">Boolean</a></code> (default = <code>false</code>)<code></code> &mdash; 
              A Boolean value that specifies whether to hint strokes 
  to full pixels. This affects both the position of anchors of a curve and the line stroke size 
  itself. With
              <code>pixelHinting</code>
              set to
              <code>true</code>
              , line widths are adjusted  
  to full pixel widths. With
              <code>pixelHinting</code>
              set to
              <code>false</code>
              , disjoints can 
  appear for curves and straight lines. For example, the following illustrations show how 
  Flash Player or Adobe AIR renders two rounded rectangles that are identical, except that the
              <code>pixelHinting</code>
              parameter used in the
              <code>lineStyle()</code>
              method is set 
  differently (the images are scaled by 200%, to emphasize the difference):
              <p>
                <img src="../../images/lineStyle_pixelHinting.jpg" alt="pixelHinting false and pixelHinting true"></img>
              </p>
              
              <p>If a value is not supplied, the line does not use pixel hinting.</p>
              
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">scaleMode</span>:<a href="../../String.html">String</a></code> (default = "<code>normal</code>")<code></code> &mdash; 
              A value from the LineScaleMode class that 
  specifies which scale mode to use:
              <ul><li>
                  
                  <code>LineScaleMode.NORMAL</code>
                  &mdash;Always scale the line thickness when the object is scaled 
  (the default).
                </li><li>
                  
                  <code>LineScaleMode.NONE</code>
                  &mdash;Never scale the line thickness.
                </li><li>
                  
                  <code>LineScaleMode.VERTICAL</code>
                  &mdash;Do not scale the line thickness if the object is scaled vertically
                  <i>only</i>
                  . For example, consider the following circles, drawn with a one-pixel line, and each with the
                  <code>scaleMode</code>
                  parameter set to
                  <code>LineScaleMode.VERTICAL</code>
                  . The circle on the left 
  is scaled vertically only, and the circle on the right is scaled both vertically and horizontally:
                  <p>
                    <img src="../../images/LineScaleMode_VERTICAL.jpg" alt="A circle scaled vertically, and a circle scaled both vertically and horizontally."></img>
                  </p>
                  
                </li><li>
                  
                  <code>LineScaleMode.HORIZONTAL</code>
                  &mdash;Do not scale the line thickness if the object is scaled horizontally
                  <i>only</i>
                  . For example, consider the following circles, drawn with a one-pixel line, and each with the
                  <code>scaleMode</code>
                  parameter set to
                  <code>LineScaleMode.HORIZONTAL</code>
                  . The circle on the left 
  is scaled horizontally only, and the circle on the right is scaled both vertically and horizontally:
                  <p>
                    <img src="../../images/LineScaleMode_HORIZONTAL.jpg" alt="A circle scaled horizontally, and a circle scaled both vertically and horizontally."></img>
                  </p>
                  
                </li></ul>
              
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">caps</span>:<a href="../../String.html">String</a></code> (default = <code>null</code>)<code></code> &mdash; 
              A value from the CapsStyle class that specifies the type of caps at the end 
  of lines. Valid values are:
              <code>CapsStyle.NONE</code>
              ,
              <code>CapsStyle.ROUND</code>
              , and
              <code>CapsStyle.SQUARE</code>
              . 
  If a value is not indicated, Flash uses round caps.
              <p>
                For example, the following illustrations show the different
                <code>capsStyle</code>
                settings. For each setting, the illustration shows a blue line with a thickness of 30 (for 
  which the
                <code>capsStyle</code>
                applies), and a superimposed black line with a thickness of 1 
  (for which no
                <code>capsStyle</code>
                applies):
              </p>
              
              <p>
                <img src="../../images/linecap.jpg" alt="NONE, ROUND, and SQUARE"></img>
              </p>
              
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">joints</span>:<a href="../../String.html">String</a></code> (default = <code>null</code>)<code></code> &mdash; 
              A value from the JointStyle class that specifies the type of joint appearance
  used at angles. Valid 
  values are:
              <code>JointStyle.BEVEL</code>
              ,
              <code>JointStyle.MITER</code>
              , and
              <code>JointStyle.ROUND</code>
              .
  If a value is not indicated, Flash uses round joints.
              <p>
                For example, the following illustrations show the different
                <code>joints</code>
                settings. For each setting, the illustration shows an angled blue line with a thickness of 
  30 (for which the
                <code>jointStyle</code>
                applies), and a superimposed angled black line with a 
  thickness of 1 (for which no
                <code>jointStyle</code>
                applies):
              </p>
              
              <p>
                <img src="../../images/linejoin.jpg" alt="MITER, ROUND, and BEVEL"></img>
              </p>
              
              <p>
                <b>Note:</b>
                For
                <code>joints</code>
                set to
                <code>JointStyle.MITER</code>
                , 
  you can use the
                <code>miterLimit</code>
                parameter to limit the length of the miter.
              </p>
              
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">miterLimit</span>:<a href="../../Number.html">Number</a></code> (default = <code>3</code>)<code></code> &mdash; 
              A number that indicates the limit at which a miter is cut off. 
  Valid values range from 1 to 255 (and values outside that range are rounded to 1 or 255). 
  This value is only used if the
              <code>jointStyle</code>
              is set to
              <code>"miter"</code>
              . The
              <code>miterLimit</code>
              value represents the length that a miter can extend beyond the point
  at which the lines meet to form a joint. The value expresses a factor of the line
              <code>thickness</code>
              . For example, with a
              <code>miterLimit</code>
              factor of 2.5 and a
              <code>thickness</code>
              of 10 pixels, the miter is cut off at 25 pixels.
              <p>
                For example, consider the following angled lines, each drawn with a
                <code>thickness</code>
                of 20, but with
                <code>miterLimit</code>
                set to 1, 2, and 4. Superimposed are black reference
  lines showing the meeting points of the joints:
              </p>
              
              <p>
                <img src="../../images/miterLimit.jpg" alt="lines with miterLimit set to 1, 2, and 4"></img>
              </p>
              
              <p>
                Notice that a given
                <code>miterLimit</code>
                value has a specific maximum angle 
  for which the miter is cut off. The following table lists some examples:
              </p>
              
              <table class="innertable" ><tr><th>
                        <code>miterLimit</code>
                        value:
                      </th><th>Angles smaller than this are cut off:</th></tr><tr><td>1.414</td><td>90 degrees</td></tr><tr><td>2</td><td>60 degrees</td></tr><tr><td>4</td><td>30 degrees</td></tr><tr><td>8</td><td>15 degrees</td></tr></table>
              
            </td></tr></table></p><p><span class="label">See also</span></p><div class="seeAlso"><a href="Graphics.html#lineBitmapStyle" target="">lineBitmapStyle</a><br/><a href="Graphics.html#lineGradientStyle" target="">lineGradientStyle</a><br/><a href="LineScaleMode.html" target="">LineScaleMode</a><br/><a href="CapsStyle.html" target="">CapsStyle</a><br/><a href="JointStyle.html" target="">JointStyle</a></div><br/><span class="label"> Example </span><br/><span class="usage"><a href="../../ExampleInstruct.html"> How to use examples </a></span><br/>
          Please see the
          <a href="Graphics.html#lineTo()" target="">lineTo()</a>
          or
          <a href="Graphics.html#moveTo()" target="">moveTo()</a>
          method's example for illustrations of how to use the
          <code>getStyle()</code>
          method.
        </div><a name="lineTo()"></a><a name="lineTo(Number,Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">lineTo</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function lineTo(x:<a href="../../Number.html">Number</a>, y:<a href="../../Number.html">Number</a>):<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Draws a line using the current line style from the current drawing position to (
          <code>x</code>
          ,
          <code>y</code>
          ); 
  the current drawing position is then set to (
          <code>x</code>
          ,
          <code>y</code>
          ).
  If the display object in which you are drawing contains content that was created with 
  the Flash drawing tools, calls to the
          <code>lineTo()</code>
          method are drawn underneath the content. If 
  you call
          <code>lineTo()</code>
          before any calls to the
          <code>moveTo()</code>
          method, the 
  default position for the current drawing is (
          <i>0, 0</i>
          ). If any of the parameters are missing, this 
  method fails and the current drawing position is not changed.
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">x</span>:<a href="../../Number.html">Number</a></code> &mdash; A number that indicates the horizontal position relative to the 
     registration point of the parent display object (in pixels).</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">y</span>:<a href="../../Number.html">Number</a></code> &mdash; A number that indicates the vertical position relative to the 
     registration point of the parent display object (in pixels).</td></tr></table></p><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example draws a trapezoid using
          <code>lineTo()</code>
          method, starting at
 pixels (100, 100).
          <p>
            The line thickness is set to 10 pixels, color is gold and opaque, caps at the end of lines
 is set to none (since all lines are jointed), and the joint between the lines is set to
            <code>MITER</code>
            with miter limit set to 10, to have sharp, pointed corners.
          </p>
          
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.display.LineScaleMode;
    import flash.display.CapsStyle;
    import flash.display.JointStyle;
    import flash.display.Shape;


    public class Graphics_lineToExample extends Sprite {

        public function Graphics_lineToExample() {

            var trapezoid:Shape = new Shape();    

            trapezoid.graphics.lineStyle(10, 0xFFD700, 1, false, LineScaleMode.VERTICAL,
                               CapsStyle.NONE, JointStyle.MITER, 10);

            trapezoid.graphics.moveTo(100, 100);
 
            trapezoid.graphics.lineTo(120, 50);
            trapezoid.graphics.lineTo(200, 50);
            trapezoid.graphics.lineTo(220, 100);
            trapezoid.graphics.lineTo(100, 100); 

            this.addChild(trapezoid);
        }
    }
}</pre></div>
        </div></div><a name="moveTo()"></a><a name="moveTo(Number,Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">moveTo</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function moveTo(x:<a href="../../Number.html">Number</a>, y:<a href="../../Number.html">Number</a>):<a href="../../specialTypes.html#void">void</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Moves the current drawing position to (
          <code>x</code>
          ,
          <code>y</code>
          ). If any of the parameters 
     are missing, this method fails and the current drawing position is not changed.
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">x</span>:<a href="../../Number.html">Number</a></code> &mdash; A number that indicates the horizontal position relative to the 
     registration point of the parent display object (in pixels).</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">y</span>:<a href="../../Number.html">Number</a></code> &mdash; A number that indicates the vertical position relative to the 
     registration point of the parent display object (in pixels).</td></tr></table></p><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example draws a dashed line of three pixels thickness
 using
          <code>moveTo()</code>
          and
          <code>lineTo()</code>
          methods.
          <p>
            Using the
            <code>lineStyle()</code>
            method, the line thickness is set to 3 pixels. It is also set not
 to scale. Color is set to red with 25 percent opacity. The
            <code>CapsStyle</code>
            property is set to 
 square (the default is round).
          </p>
          
          <p>
            Since
            <code>Graphics_moveToExample</code>
            is an instance of the
            <code>Sprite</code>
            class, it has access 
 to all the Graphics class methods. The Graphics class methods can be used to directly draw on the
            <code>Graphic_moveToExample</code>
            Sprite object. However, not putting the vector drawing object in a
            <code>Shape</code>
            limits the way they can be managed, moved, or changed.
          </p>
          
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.display.CapsStyle;
    import flash.display.LineScaleMode;

    public class Graphics_moveToExample extends Sprite
    {
        public function Graphics_moveToExample() {
            
            graphics.lineStyle(3, 0x990000, 0.25, false, 
                            LineScaleMode.NONE, CapsStyle.SQUARE);

            graphics.moveTo(10, 20);
            graphics.lineTo(20, 20);
            graphics.moveTo(30, 20);
            graphics.lineTo(50, 20);
            graphics.moveTo(60, 20);
            graphics.lineTo(80, 20);
            graphics.moveTo(90, 20);
            graphics.lineTo(110, 20);            
            graphics.moveTo(120, 20);
            graphics.lineTo(130, 20);           
        }
    }
}</pre></div>
        </div></div><a name="includeExamplesSummary"></a><div class="detailSectionHeader">Examples<span class="usage"><a href="../../ExampleInstruct.html"> How to use examples </a></span></div><div class="exampleHeader">GraphicsExample.as</div><br/><div class="detailBody">
        The following example uses the GraphicsExample class to draw a circle,
 a rounded rectangle, and a square.  This task is accomplished by using the following steps:
        <ol><li>
            Declare a
            <code>size</code>
            property for later use in determining the size of each shape.
          </li><li>Declare properties that set the background color to orange, the border color to
 	dark gray, the border size to 0 pixels, the corner radius to 9 pixels, and set the space
 	between the stage edge and the other objects to be 5 pixels.</li><li>Use the properties declared in the preceding steps along with the built in methods of the
 	Graphics class to draw the circle, rounded rectangle, and square at coordinates x = 0, y = 0.</li><li>Redraw each of the shapes along the top of the stage, starting at x = 5, y = 5, with
 	a 5-pixel spacing between shapes.</li></ol>
        
        <div class="listing"><pre>package {
    import flash.display.DisplayObject;
    import flash.display.Graphics;
    import flash.display.Shape;
    import flash.display.Sprite;

    public class GraphicsExample extends Sprite {
        private var size:uint         = 80;
        private var bgColor:uint      = 0xFFCC00;
        private var borderColor:uint  = 0x666666;
        private var borderSize:uint   = 0;
        private var cornerRadius:uint = 9;
        private var gutter:uint       = 5;

        public function GraphicsExample() {
            doDrawCircle();
            doDrawRoundRect();
            doDrawRect();
            refreshLayout();
        }

        private function refreshLayout():void {
            var ln:uint = numChildren;
            var child:DisplayObject;
            var lastChild:DisplayObject = getChildAt(0);
            lastChild.x = gutter;
            lastChild.y = gutter;
            for (var i:uint = 1; i &lt; ln; i++) {
                child = getChildAt(i);
                child.x = gutter + lastChild.x + lastChild.width;
                child.y = gutter;
                lastChild = child;
            }
        }

        private function doDrawCircle():void {
            var child:Shape = new Shape();
            var halfSize:uint = Math.round(size / 2);
            child.graphics.beginFill(bgColor);
            child.graphics.lineStyle(borderSize, borderColor);
            child.graphics.drawCircle(halfSize, halfSize, halfSize);
            child.graphics.endFill();
            addChild(child);
        }

        private function doDrawRoundRect():void {
            var child:Shape = new Shape();
            child.graphics.beginFill(bgColor);
            child.graphics.lineStyle(borderSize, borderColor);
            child.graphics.drawRoundRect(0, 0, size, size, cornerRadius);
            child.graphics.endFill();
            addChild(child);
        }

        private function doDrawRect():void {
            var child:Shape = new Shape();
            child.graphics.beginFill(bgColor);
            child.graphics.lineStyle(borderSize, borderColor);
            child.graphics.drawRect(0, 0, size, size);
            child.graphics.endFill();
            addChild(child);
        }
    }
}</pre></div>
      </div><br/><br/><hr><br/><p></p><center class="copyright"> &copy; 2004-2008 Adobe Systems Incorporated. All rights reserved. <br/>Thu Oct 30 2008, 07:08 PM -07:00  </center><div style="display:none">Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics Graphics </div><div style="display:none">flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics flash.display.Graphics </div></div></body></html><!-- &copy; 2004-2008 Adobe Systems Incorporated. All rights reserved. <br/>Thu Oct 30 2008, 07:08 PM -07:00  -->
