﻿<!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="JointStyle,flash.display.JointStyle,ACTIONSCRIPT2,ACTIONSCRIPT3,ADD,ALPHA,ALPHA,ALWAYS,AUTO,BEST,BEVEL,BLUE,BOOL2,BOOL3,BOOL4,BOOL,BOTTOM,BOTTOM,BOTTOM,BOTTOM_LEFT,BOTTOM_LEFT,BOTTOM_RIGHT,BOTTOM_RIGHT,CURVE_TO,DARKEN,DEFAULT,DEFAULT_OFF,DEFAULT_ON,DIFFERENCE,ERASE,EVEN_ODD,EXACT_FIT,FAST,FLASH10,FLASH1,FLASH2,FLASH3,FLASH4,FLASH5,FLASH6,FLASH7,FLASH8,FLASH9,FLOAT2,FLOAT3,FLOAT4,FLOAT,FULL,FULL_SCREEN,FULL_SCREEN_INTERACTIVE,GREEN,HARDLIGHT,HIGH,HORIZONTAL,INT2,INT3,INT4,INT,INVERT,LAYER,LEFT,LEFT,LIGHTEN,LIGHTWEIGHT,LINEAR,LINEAR_RGB,LINE_TO,LOW,MATRIX2X2,MATRIX3X3,MATRIX4X4,MAXIMIZED,MEDIUM,MINIMIZED,MITER,MOVE_TO,MULTIPLY,NEGATIVE,NEVER,NONE,NONE,NONE,NONE,NONE,NONE,NON_ZERO,NORMAL,NORMAL,NORMAL,NORMAL,NORMAL,NO_BORDER,NO_OP,NO_SCALE,OFF,ON,OVERLAY,PAD,POSITIVE,RADIAL,RED,REFLECT,REPEAT,RGB,RIGHT,RIGHT,ROUND,ROUND,SCREEN,SHADER,SHOW_ALL,SQUARE,STANDARD,SUBTRACT,TOP,TOP,TOP,TOP_LEFT,TOP_LEFT,TOP_RIGHT,TOP_RIGHT,UNSUPPORTED,UTILITY,VERTICAL,WIDE_LINE_TO,WIDE_MOVE_TO,accessibilityProperties,actionScriptVersion,active,align,alpha,alpha,alphas,alwaysInFront,applicationDomain,bitmapData,bitmapData,blendMode,blendShader,bounds,bounds,buttonMode,byteCode,bytesLoaded,bytes,bytesTotal,cacheAsBitmap,caps,channels,checked,childAllowsParent,childSandboxBridge,closed,colorCorrection,colorCorrectionSupport,colorDepth,color,colors,commands,content,contentLoaderInfo,content,contentType,contextMenu,culling,currentFrameLabel,currentFrame,currentLabel,currentLabels,currentScene,data,data,data,displayState,displayState,doubleClickEnabled,downState,dropTarget,enabled,enabled,enabled,fill,filters,focalPointRatio,focusRect,focus,frameRate,frameRate,frame,framesLoaded,fullScreenHeight,fullScreenSourceRect,fullScreenWidth,graphics,graphics,height,height,height,height,height,height,height,hitArea,hitTestState,index,index,indices,input,interpolationMethod,isSeparator,items,joints,keyEquivalentModifiers,keyEquivalent,label,labels,loaderInfo,loader,loaderURL,mainScreen,mask,matrix,matrix,matrix,maxSize,maximizable,maximizable,menu,menu,minSize,minimizable,minimizable,miterLimit,mnemonicIndex,mouseChildren,mouseChildren,mouseEnabled,mouseX,mouseY,name,name,name,name,nativeWindow,numChildren,numChildren,numFrames,numItems,opaqueBackground,overState,parameters,parentAllowsChild,parent,parentSandboxBridge,parent,pixelHinting,pixelSnapping,precisionHint,progress,quality,ratios,rect,repeat,resizable,resizable,root,rotation,rotationX,rotationY,rotationZ,sameDomain,scale9Grid,scaleMode,scaleMode,scaleX,scaleY,scaleZ,scenes,screens,scrollRect,shader,shader,sharedEvents,showDefaultContextMenu,smooth,smoothing,soundTransform,soundTransform,spreadMethod,stageFocusRect,stageHeight,stage,stage,stageWidth,submenu,supportsMenu,supportsNotification,supportsTransparency,swfVersion,systemChrome,systemChrome,systemMaxSize,systemMinSize,tabChildren,tabChildren,tabEnabled,tabIndex,target,textSnapshot,textSnapshot,thickness,title,totalFrames,trackAsMenu,trackAsMenu,transform,transparent,transparent,transparent,type,type,type,type,upState,url,useHandCursor,useHandCursor,uvtData,value,vertices,visibleBounds,visible,visible,width,width,width,width,width,width,width,winding,x,x,y,y,z"><title>flash.display.JointStyle (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 = 'JointStyle - 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/JointStyle.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">JointStyle</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("JointStyle"); titleBar_setSubNav(true,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  JointStyle</td></tr><tr><td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">JointStyle  <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 JointStyle class is an enumeration of constant values that specify the joint style to use in drawing lines.
These constants are provided for use as values in the
        <code>joints</code>
        parameter of the
        <code>flash.display.Graphics.lineStyle()</code>
        method. The method supports three types of joints: 
miter, round, and bevel, as the following example shows:
        <p>
                  <img src="../../images/linejoin.jpg" alt="MITER, ROUND, and BEVEL"></img>
               </p>
        
            <p></p><p><a href="#includeExamplesSummary">View the examples</a></p><p><span class="classHeaderTableLabel">See also</span></p><div class="seeAlso"><a href="Graphics.html#lineStyle()" target="">flash.display.Graphics.lineStyle()</a></div><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 hideInheritedMethod" id="summaryTableMethod"><tr><th>&nbsp;</th><th colspan="2">Method</th><th>Defined By</th></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="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><a name="constantSummary"></a><div class="summarySection"><div class="summaryTableTitle">Public Constants</div><table cellspacing="0" cellpadding="3" class="summaryTable " id="summaryTableConstant"><tr><th>&nbsp;</th><th colspan="2">Constant</th><th>Defined By</th></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#BEVEL" class="signatureLink">BEVEL</a> : <a href="../../String.html">String</a> = "bevel"<div class="summaryTableDescription">[static] Specifies beveled joints in the joints parameter of the
 flash.display.Graphics.lineStyle() method.</div></td><td class="summaryTableOwnerCol">JointStyle</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#MITER" class="signatureLink">MITER</a> : <a href="../../String.html">String</a> = "miter"<div class="summaryTableDescription">[static] Specifies mitered joints in the joints parameter of the
 flash.display.Graphics.lineStyle() method.</div></td><td class="summaryTableOwnerCol">JointStyle</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#ROUND" class="signatureLink">ROUND</a> : <a href="../../String.html">String</a> = "round"<div class="summaryTableDescription">[static] Specifies round joints in the joints parameter of the
 flash.display.Graphics.lineStyle() method.</div></td><td class="summaryTableOwnerCol">JointStyle</td></tr></table></div><script language="javascript" type="text/javascript"><!--
                      showHideInherited();
                      --></script><div class="MainContent"><div class="detailSectionHeader">Constant Detail</div><a name="constantDetail"></a><a name="BEVEL"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">BEVEL</td><td class="detailHeaderType">Constant</td></tr></table><div class="detailBody"><code>public static const BEVEL:<a href="../../String.html">String</a> = "bevel"</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 beveled joints in the
          <code>joints</code>
          parameter of the
          <code>flash.display.Graphics.lineStyle()</code>
          method.
        </p></div><a name="constantDetail"></a><a name="MITER"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">MITER</td><td class="detailHeaderType">Constant</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>public static const MITER:<a href="../../String.html">String</a> = "miter"</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 mitered joints in the
          <code>joints</code>
          parameter of the
          <code>flash.display.Graphics.lineStyle()</code>
          method.
        </p></div><a name="constantDetail"></a><a name="ROUND"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">ROUND</td><td class="detailHeaderType">Constant</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>public static const ROUND:<a href="../../String.html">String</a> = "round"</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 round joints in the
          <code>joints</code>
          parameter of the
          <code>flash.display.Graphics.lineStyle()</code>
          method.
        </p></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">JointStyleExample.as</div><br/><div class="detailBody">
        The following example uses the JointStyleExample class to show the result
 of three different joint styles applied to three sets of joined lines. This task is accomplished by performing
 the following steps:
        <ol><li>
            The properties of each line are set as follows:
            <ul><li>The line length is set to 80 pixels.</li><li>The border color is set to orange.</li><li>The border size is set to 30 pixels.</li><li>The highlight color is set to gray.</li><li>The highlight size is set to zero pixels.</li><li>The alpha is set to 1, making it solid.</li><li>The pixel hinting is set to false (strokes not hinted to full pixels).</li><li>The line scale mode is set to normal, which scales the thickness.</li><li>The border caps and miter limit are declared but not set, so the default values are used.</li></ul>
          </li><li>
            The class constructor creates three sets of two connected line segments. The segments start at x = 0, y = 0
  by calling the
            <code>doDrawCorner()</code>
            method three times using the three joint styles (miter,
  round, and bevel).  Each of the three calls to
            <code>doDrawCorner()</code>
            uses the joint style and
  properties previously listed to draw two connected line segments and associated line highlights. This is done by
  first creating a new Shape object
            <code>child</code>
            and then using methods of the Graphics
  class to set the line style and draw the lines and highlights.  Each instance of
            <code>child</code>
            is added to the display list and promptly drawn on the stage.
          </li><li>
            The connected line segments are then redrawn by using the
            <code>refreshLayout()</code>
            method 
  at y = 80 pixels and starting at x = 80 pixels, with a 25-pixel separation between the line segments.
          </li></ol>
        
        <div class="listing"><pre>package {
    import flash.display.DisplayObject;
    import flash.display.Graphics;
    import flash.display.JointStyle;
    import flash.display.LineScaleMode;
    import flash.display.Shape;
    import flash.display.Sprite;

    public class JointStyleExample extends Sprite {
        private var size:uint                  = 80;
        private var borderColor:uint           = 0xFFCC00;
        private var borderSize:uint            = 30;
        private var highlightColor:uint        = 0x666666;
        private var highlightSize:uint         = 0;
        private var gutter:uint                = 25;
        private var borderAlpha:uint           = 1;
        private var borderPixelHinting:Boolean = false;
        private var borderScaleMode:String     = LineScaleMode.NORMAL;
        private var borderCaps:String;
        private var borderMiterLimit:uint;

        public function JointStyleExample() {
            doDrawCorner(JointStyle.MITER);
            doDrawCorner(JointStyle.ROUND);
            doDrawCorner(JointStyle.BEVEL);
            refreshLayout();
        }

        private function doDrawCorner(jointStyle:String):void {
            var halfSize:uint = Math.round(size / 2);
            var child:Shape = new Shape();
            child.graphics.lineStyle(borderSize,
                                     borderColor,
                                     borderAlpha,
                                     borderPixelHinting,
                                     borderScaleMode,
                                     borderCaps,
                                     jointStyle,
                                     borderMiterLimit);
            child.graphics.lineTo(0, 0);
            child.graphics.lineTo(size, 0);
            child.graphics.lineTo(halfSize, size);
            child.graphics.endFill();

            child.graphics.moveTo(0, 0);
            child.graphics.lineStyle(highlightSize, highlightColor);
            child.graphics.lineTo(0, 0);
            child.graphics.lineTo(size, 0);
            child.graphics.lineTo(halfSize, size);

            addChild(child);
        }

        private function refreshLayout():void {
            var ln:uint = numChildren;
            var child:DisplayObject;
            var lastChild:DisplayObject = getChildAt(0);
            lastChild.x = size;
            lastChild.y = size;
            for (var i:uint = 1; i &lt; ln; i++) {
                child = getChildAt(i);
                child.x = gutter + lastChild.x + lastChild.width;
                child.y = size;
                lastChild = 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">JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle JointStyle </div><div style="display:none">flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle flash.display.JointStyle </div></div></body></html><!-- &copy; 2004-2008 Adobe Systems Incorporated. All rights reserved. <br/>Thu Oct 30 2008, 07:08 PM -07:00  -->
