﻿<!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="TextField,flash.text.TextField,ADVANCED,BOLD,BOLD_ITALIC,CENTER,CENTER,CRT,DARK_COLOR,DEFAULT,DEVICE,DYNAMIC,EMBEDDED,EMBEDDED_CFF,INPUT,ITALIC,JUSTIFY,LCD,LEFT,LEFT,LIGHT_COLOR,NONE,NONE,NORMAL,PIXEL,REGULAR,RIGHT,RIGHT,SUBPIXEL,align,alwaysShowSelection,antiAliasType,ascent,ascent,autoSize,backgroundColor,background,blockIndent,bold,borderColor,border,bottomScrollV,bullet,caretIndex,charCount,color,condenseWhite,defaultTextFormat,descent,descent,displayAsPassword,displayMode,embedFonts,fontName,fontSize,fontStyle,font,fontType,gridFitType,height,height,htmlText,indent,insideCutoff,italic,kerning,leading,leading,leftMargin,length,letterSpacing,maxChars,maxLevel,maxScrollH,maxScrollV,mouseWheelEnabled,multiline,numLines,outsideCutoff,restrict,rightMargin,scrollH,scrollV,selectable,selectionBeginIndex,selectionEndIndex,sharpness,size,styleNames,styleSheet,tabStops,target,text,textColor,textFieldHeight,textFieldWidth,textHeight,text,textWidth,thickness,type,underline,url,useRichTextClipboard,width,width,wordWrap,x,appendText,clear,enumerateFonts,findText,getCharBoundaries,getCharIndexAtPoint,getFirstCharInParagraph,getImageReference,getLineIndexAtPoint,getLineIndexOfChar,getLineLength,getLineMetrics,getLineOffset,getLineText,getParagraphLength,getSelected,getSelectedText,getStyle,getTextFormat,getText,getTextRunInfo,hasGlyphs,hitTestTextNearPos,isFontCompatible,parseCSS,registerFont,replaceSelectedText,replaceText,setAdvancedAntiAliasingTable,setSelectColor,setSelected,setSelection,setStyle,setTextFormat,transform"><title>flash.text.TextField (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 = 'TextField - 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/text/TextField.html&amp;flash/text/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">TextField</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("TextField"); titleBar_setSubNav(false,true,false	,false,true,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.text</a></td></tr><tr><td class="classHeaderTableLabel">Class</td><td class="classSignature">public  class  TextField</td></tr><tr><td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">TextField  <img src="../../images/inherit-arrow.gif" title="Inheritance" alt="Inheritance" class="inheritArrow"> <a href="../../flash/display/InteractiveObject.html">InteractiveObject</a> <img src="../../images/inherit-arrow.gif" title="Inheritance" alt="Inheritance" class="inheritArrow"> <a href="../../flash/display/DisplayObject.html">DisplayObject</a> <img src="../../images/inherit-arrow.gif" title="Inheritance" alt="Inheritance" class="inheritArrow"> <a href="../../flash/events/EventDispatcher.html">EventDispatcher</a> <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 TextField class is used to create display objects for text display and input.
 All dynamic and input text fields in a SWF file are instances of the TextField class.
        
        
               <span src="flashonly">You can give a text field an instance name in the Property inspector and
 use the methods and properties of the TextField class to manipulate it with ActionScript.
 TextField instance names are displayed in the Movie Explorer and in the Insert Target Path dialog box
 in the Actions panel.</span>
        
               <p>
          To create a text field dynamically, use the
          <code>TextField()</code>
          constructor.
        </p>
        
               <p>The methods of the TextField class let you set, select, and manipulate text in a dynamic or input
 text field that you create during authoring or at runtime.</p>
        
               <p>
          ActionScript provides several ways to
 format your text at runtime. The TextFormat class lets you set character and paragraph formatting
 for TextField objects. You can apply Cascading Style Sheets (CSS) styles
 to text fields by using the
          <code>TextField.styleSheet</code>
          property and the StyleSheet class. You can use CSS to
 style built-in HTML tags, define new formatting tags, or apply styles.
 You can assign HTML formatted text, which optionally uses CSS styles, directly to a text
 field. HTML text that you assign to a text field can contain embedded
 media (movie clips, SWF files, GIF files, PNG files, and JPEG files). The text wraps around the
 embedded media in the same way that a web browser wraps text around media embedded in an HTML document.
        </p>
        
               <p>
          Flash Player supports a subset of HTML tags that you can use to format text. See the list of supported
 HTML tags in the description of the
          <a href="#text/TextField#htmlText" target="">htmlText</a>
          property.
        </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="TextFormat.html" target="">flash.text.TextFormat</a><br/><a href="StyleSheet.html" target="">flash.text.StyleSheet</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 " 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="../../flash/display/DisplayObject.html#accessibilityProperties" class="signatureLink">accessibilityProperties</a> : <a href="../../flash/accessibility/AccessibilityProperties.html">AccessibilityProperties</a><div class="summaryTableDescription">The current accessibility options for this display object.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</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="../../flash/display/DisplayObject.html#alpha" class="signatureLink">alpha</a> : <a href="../../Number.html">Number</a><div class="summaryTableDescription">Indicates the alpha transparency value of the object specified.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#alwaysShowSelection" class="signatureLink">alwaysShowSelection</a> : <a href="../../Boolean.html">Boolean</a><div class="summaryTableDescription">When set to true and the text field is not in focus, Flash Player highlights the 
 selection in the text field in gray.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#antiAliasType" class="signatureLink">antiAliasType</a> : <a href="../../String.html">String</a><div class="summaryTableDescription">The type of anti-aliasing used for this text field.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#autoSize" class="signatureLink">autoSize</a> : <a href="../../String.html">String</a><div class="summaryTableDescription">Controls automatic sizing and alignment of text fields.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#background" class="signatureLink">background</a> : <a href="../../Boolean.html">Boolean</a><div class="summaryTableDescription">Specifies whether the text field has a background fill.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#backgroundColor" class="signatureLink">backgroundColor</a> : <a href="../../uint.html">uint</a><div class="summaryTableDescription">The color of the text field background.</div></td><td class="summaryTableOwnerCol">TextField</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="../../flash/display/DisplayObject.html#blendMode" class="signatureLink">blendMode</a> : <a href="../../String.html">String</a><div class="summaryTableDescription">A value from the BlendMode class that specifies which blend mode to use.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</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="../../flash/display/DisplayObject.html#blendShader" class="signatureLink">blendShader</a> : <a href="../../flash/display/Shader.html">Shader</a><div class="summaryTableDescription">[write-only] Sets a shader that is used for blending the foreground and background.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#border" class="signatureLink">border</a> : <a href="../../Boolean.html">Boolean</a><div class="summaryTableDescription">Specifies whether the text field has a border.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#borderColor" class="signatureLink">borderColor</a> : <a href="../../uint.html">uint</a><div class="summaryTableDescription">The color of the text field border.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#bottomScrollV" class="signatureLink">bottomScrollV</a> : <a href="../../int.html">int</a><div class="summaryTableDescription">[read-only] An integer (1-based index) that indicates the bottommost line that is currently visible in
  the specified text field.</div></td><td class="summaryTableOwnerCol">TextField</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="../../flash/display/DisplayObject.html#cacheAsBitmap" class="signatureLink">cacheAsBitmap</a> : <a href="../../Boolean.html">Boolean</a><div class="summaryTableDescription">If set to true, Flash Player or Adobe AIR caches an internal bitmap representation of the
     display object.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#caretIndex" class="signatureLink">caretIndex</a> : <a href="../../int.html">int</a><div class="summaryTableDescription">[read-only] The index of the insertion point (caret) position.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#condenseWhite" class="signatureLink">condenseWhite</a> : <a href="../../Boolean.html">Boolean</a><div class="summaryTableDescription">A Boolean value that specifies whether extra white space (spaces, line breaks, and so on)
  in a text field with HTML text is removed.</div></td><td class="summaryTableOwnerCol">TextField</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#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="../../flash/display/InteractiveObject.html#contextMenu" class="signatureLink">contextMenu</a> : <a href="../../flash/display/NativeMenu.html">NativeMenu</a><div class="summaryTableDescription">Specifies the context menu associated with this object.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#defaultTextFormat" class="signatureLink">defaultTextFormat</a> : <a href="../../flash/text/TextFormat.html">TextFormat</a><div class="summaryTableDescription">Specifies the format applied to newly inserted text, such as text entered by a user or text inserted with the 
  replaceSelectedText() method.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#displayAsPassword" class="signatureLink">displayAsPassword</a> : <a href="../../Boolean.html">Boolean</a><div class="summaryTableDescription">Specifies whether the text field is a password text field.</div></td><td class="summaryTableOwnerCol">TextField</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="../../flash/display/InteractiveObject.html#doubleClickEnabled" class="signatureLink">doubleClickEnabled</a> : <a href="../../Boolean.html">Boolean</a><div class="summaryTableDescription">Specifies whether the object receives doubleClick events.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#embedFonts" class="signatureLink">embedFonts</a> : <a href="../../Boolean.html">Boolean</a><div class="summaryTableDescription">Specifies whether to render by using embedded font outlines.</div></td><td class="summaryTableOwnerCol">TextField</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="../../flash/display/DisplayObject.html#filters" class="signatureLink">filters</a> : <a href="../../Array.html">Array</a><div class="summaryTableDescription">An indexed array that contains each filter object currently associated with the display object.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</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="../../flash/display/InteractiveObject.html#focusRect" class="signatureLink">focusRect</a> : <a href="../../Object.html">Object</a><div class="summaryTableDescription">Specifies whether this object displays a focus rectangle.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#gridFitType" class="signatureLink">gridFitType</a> : <a href="../../String.html">String</a><div class="summaryTableDescription">The type of grid fitting used for this text field.</div></td><td class="summaryTableOwnerCol">TextField</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="../../flash/display/DisplayObject.html#height" class="signatureLink">height</a> : <a href="../../Number.html">Number</a><div class="summaryTableDescription">Indicates the height of the display object, in pixels.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#htmlText" class="signatureLink">htmlText</a> : <a href="../../String.html">String</a><div class="summaryTableDescription">Contains the HTML representation of the text field contents.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#length" class="signatureLink">length</a> : <a href="../../int.html">int</a><div class="summaryTableDescription">[read-only] The number of characters in a text field.</div></td><td class="summaryTableOwnerCol">TextField</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="../../flash/display/DisplayObject.html#loaderInfo" class="signatureLink">loaderInfo</a> : <a href="../../flash/display/LoaderInfo.html">LoaderInfo</a><div class="summaryTableDescription">[read-only] Returns a LoaderInfo object containing information about loading the file
     to which this display object belongs.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</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="../../flash/display/DisplayObject.html#mask" class="signatureLink">mask</a> : <a href="../../flash/display/DisplayObject.html">DisplayObject</a><div class="summaryTableDescription">The calling display object is masked by the specified mask object.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#maxChars" class="signatureLink">maxChars</a> : <a href="../../int.html">int</a><div class="summaryTableDescription">The maximum number of characters that the text field can contain, as entered by a user.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#maxScrollH" class="signatureLink">maxScrollH</a> : <a href="../../int.html">int</a><div class="summaryTableDescription">[read-only] The maximum value of scrollH.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#maxScrollV" class="signatureLink">maxScrollV</a> : <a href="../../int.html">int</a><div class="summaryTableDescription">[read-only] The maximum value of scrollV.</div></td><td class="summaryTableOwnerCol">TextField</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="../../flash/display/InteractiveObject.html#mouseEnabled" class="signatureLink">mouseEnabled</a> : <a href="../../Boolean.html">Boolean</a><div class="summaryTableDescription">Specifies whether this object receives mouse messages.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#mouseWheelEnabled" class="signatureLink">mouseWheelEnabled</a> : <a href="../../Boolean.html">Boolean</a><div class="summaryTableDescription">A Boolean value that indicates whether Flash Player automatically scrolls multiline
  text fields when the user clicks a text field and rolls the mouse wheel.</div></td><td class="summaryTableOwnerCol">TextField</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="../../flash/display/DisplayObject.html#mouseX" class="signatureLink">mouseX</a> : <a href="../../Number.html">Number</a><div class="summaryTableDescription">[read-only] Indicates the x coordinate of the mouse position, in pixels.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</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="../../flash/display/DisplayObject.html#mouseY" class="signatureLink">mouseY</a> : <a href="../../Number.html">Number</a><div class="summaryTableDescription">[read-only] Indicates the y coordinate of the mouse position, in pixels.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#multiline" class="signatureLink">multiline</a> : <a href="../../Boolean.html">Boolean</a><div class="summaryTableDescription">Indicates whether field is a multiline text field.</div></td><td class="summaryTableOwnerCol">TextField</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="../../flash/display/DisplayObject.html#name" class="signatureLink">name</a> : <a href="../../String.html">String</a><div class="summaryTableDescription">Indicates the instance name of the DisplayObject.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#numLines" class="signatureLink">numLines</a> : <a href="../../int.html">int</a><div class="summaryTableDescription">[read-only] Defines the number of text lines in a multiline text field.</div></td><td class="summaryTableOwnerCol">TextField</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="../../flash/display/DisplayObject.html#opaqueBackground" class="signatureLink">opaqueBackground</a> : <a href="../../Object.html">Object</a><div class="summaryTableDescription">Specifies whether the display object is opaque with a certain background color.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</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="../../flash/display/DisplayObject.html#parent" class="signatureLink">parent</a> : <a href="../../flash/display/DisplayObjectContainer.html">DisplayObjectContainer</a><div class="summaryTableDescription">[read-only] Indicates the DisplayObjectContainer object that contains this display object.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</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><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#restrict" class="signatureLink">restrict</a> : <a href="../../String.html">String</a><div class="summaryTableDescription">Indicates the set of characters that a user can enter into the text field.</div></td><td class="summaryTableOwnerCol">TextField</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="../../flash/display/DisplayObject.html#root" class="signatureLink">root</a> : <a href="../../flash/display/DisplayObject.html">DisplayObject</a><div class="summaryTableDescription">[read-only] For a display object in a loaded SWF file, the root property is the 
     top-most display object in the portion of the display list's tree structure represented by that SWF file.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</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="../../flash/display/DisplayObject.html#rotation" class="signatureLink">rotation</a> : <a href="../../Number.html">Number</a><div class="summaryTableDescription">Indicates the rotation of the DisplayObject instance, in degrees, from its original orientation.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</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="../../flash/display/DisplayObject.html#rotationX" class="signatureLink">rotationX</a> : <a href="../../Number.html">Number</a><div class="summaryTableDescription">Indicates the x-axis rotation of the DisplayObject instance, in degrees, from its original orientation relative to the 3D parent container.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</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="../../flash/display/DisplayObject.html#rotationY" class="signatureLink">rotationY</a> : <a href="../../Number.html">Number</a><div class="summaryTableDescription">Indicates the y-axis rotation of the DisplayObject instance, in degrees, from its original orientation relative to the 3D parent container.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</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="../../flash/display/DisplayObject.html#rotationZ" class="signatureLink">rotationZ</a> : <a href="../../Number.html">Number</a><div class="summaryTableDescription">Indicates the z-axis rotation of the DisplayObject instance, in degrees, from its original orientation relative to the 3D parent container.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</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="../../flash/display/DisplayObject.html#scale9Grid" class="signatureLink">scale9Grid</a> : <a href="../../flash/geom/Rectangle.html">Rectangle</a><div class="summaryTableDescription">The current scaling grid that is in effect.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</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="../../flash/display/DisplayObject.html#scaleX" class="signatureLink">scaleX</a> : <a href="../../Number.html">Number</a><div class="summaryTableDescription">Indicates the horizontal scale (percentage) of the object as applied from the registration point.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</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="../../flash/display/DisplayObject.html#scaleY" class="signatureLink">scaleY</a> : <a href="../../Number.html">Number</a><div class="summaryTableDescription">Indicates the vertical scale (percentage) of an object as applied from the registration point of the object.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</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="../../flash/display/DisplayObject.html#scaleZ" class="signatureLink">scaleZ</a> : <a href="../../Number.html">Number</a><div class="summaryTableDescription">Indicates the depth scale (percentage) of an object as applied from the registration point of the object.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#scrollH" class="signatureLink">scrollH</a> : <a href="../../int.html">int</a><div class="summaryTableDescription">The current horizontal scrolling position.</div></td><td class="summaryTableOwnerCol">TextField</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="../../flash/display/DisplayObject.html#scrollRect" class="signatureLink">scrollRect</a> : <a href="../../flash/geom/Rectangle.html">Rectangle</a><div class="summaryTableDescription">The scroll rectangle bounds of the display object.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#scrollV" class="signatureLink">scrollV</a> : <a href="../../int.html">int</a><div class="summaryTableDescription">The vertical position of text in a text field.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#selectable" class="signatureLink">selectable</a> : <a href="../../Boolean.html">Boolean</a><div class="summaryTableDescription">A Boolean value that indicates whether the text field is selectable.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#selectionBeginIndex" class="signatureLink">selectionBeginIndex</a> : <a href="../../int.html">int</a><div class="summaryTableDescription">[read-only] The zero-based character index value of the first character in the current selection.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#selectionEndIndex" class="signatureLink">selectionEndIndex</a> : <a href="../../int.html">int</a><div class="summaryTableDescription">[read-only] The zero-based character index value of the last character in the current selection.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#sharpness" class="signatureLink">sharpness</a> : <a href="../../Number.html">Number</a><div class="summaryTableDescription">The sharpness of the glyph edges in this text field.</div></td><td class="summaryTableOwnerCol">TextField</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="../../flash/display/DisplayObject.html#stage" class="signatureLink">stage</a> : <a href="../../flash/display/Stage.html">Stage</a><div class="summaryTableDescription">[read-only] The Stage of the display object.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#styleSheet" class="signatureLink">styleSheet</a> : <a href="../../flash/text/StyleSheet.html">StyleSheet</a><div class="summaryTableDescription">Attaches a style sheet to the text field.</div></td><td class="summaryTableOwnerCol">TextField</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="../../flash/display/InteractiveObject.html#tabEnabled" class="signatureLink">tabEnabled</a> : <a href="../../Boolean.html">Boolean</a><div class="summaryTableDescription">Specifies whether this object is in the tab order.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</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="../../flash/display/InteractiveObject.html#tabIndex" class="signatureLink">tabIndex</a> : <a href="../../int.html">int</a><div class="summaryTableDescription">Specifies the tab ordering of objects in a SWF file.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#text" class="signatureLink">text</a> : <a href="../../String.html">String</a><div class="summaryTableDescription">A string that is the current text in the text field.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#textColor" class="signatureLink">textColor</a> : <a href="../../uint.html">uint</a><div class="summaryTableDescription">The color of the text in a text field, in hexadecimal format.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#textHeight" class="signatureLink">textHeight</a> : <a href="../../Number.html">Number</a><div class="summaryTableDescription">[read-only] The height of the text in pixels.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#textWidth" class="signatureLink">textWidth</a> : <a href="../../Number.html">Number</a><div class="summaryTableDescription">[read-only] The width of the text in pixels.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#thickness" class="signatureLink">thickness</a> : <a href="../../Number.html">Number</a><div class="summaryTableDescription">The thickness of the glyph edges in this text field.</div></td><td class="summaryTableOwnerCol">TextField</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="../../flash/display/DisplayObject.html#transform" class="signatureLink">transform</a> : <a href="../../flash/geom/Transform.html">Transform</a><div class="summaryTableDescription">An object with properties pertaining to a display object's matrix, color transform, and pixel bounds.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#type" class="signatureLink">type</a> : <a href="../../String.html">String</a><div class="summaryTableDescription">The type of the text field.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#useRichTextClipboard" class="signatureLink">useRichTextClipboard</a> : <a href="../../Boolean.html">Boolean</a><div class="summaryTableDescription">Specifies whether to copy and paste the text formatting along with the text.</div></td><td class="summaryTableOwnerCol">TextField</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="../../flash/display/DisplayObject.html#visible" class="signatureLink">visible</a> : <a href="../../Boolean.html">Boolean</a><div class="summaryTableDescription">Whether or not the display object is visible.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</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="../../flash/display/DisplayObject.html#width" class="signatureLink">width</a> : <a href="../../Number.html">Number</a><div class="summaryTableDescription">Indicates the width of the display object, in pixels.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#wordWrap" class="signatureLink">wordWrap</a> : <a href="../../Boolean.html">Boolean</a><div class="summaryTableDescription">A Boolean value that indicates whether the text field has word wrap.</div></td><td class="summaryTableOwnerCol">TextField</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="../../flash/display/DisplayObject.html#x" class="signatureLink">x</a> : <a href="../../Number.html">Number</a><div class="summaryTableDescription">Indicates the x coordinate of the DisplayObject instance relative to the local coordinates of
     the parent DisplayObjectContainer.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</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="../../flash/display/DisplayObject.html#y" class="signatureLink">y</a> : <a href="../../Number.html">Number</a><div class="summaryTableDescription">Indicates the y coordinate of the DisplayObject instance relative to the local coordinates of
     the parent DisplayObjectContainer.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</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="../../flash/display/DisplayObject.html#z" class="signatureLink">z</a> : <a href="../../Number.html">Number</a><div class="summaryTableDescription">Indicates the z coordinate position along the z-axis of the DisplayObject
     instance relative to the 3D parent container.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</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="#TextField()" class="signatureLink">TextField</a>()</div><div class="summaryTableDescription">Creates a new TextField instance.</div></td><td class="summaryTableOwnerCol">TextField</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="../../flash/events/EventDispatcher.html#addEventListener()" class="signatureLink">addEventListener</a>(type:<a href="../../String.html">String</a>, listener:<a href="../../Function.html">Function</a>, useCapture:<a href="../../Boolean.html">Boolean</a> = false, priority:<a href="../../int.html">int</a> = 0, useWeakReference:<a href="../../Boolean.html">Boolean</a> = false):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Registers an event listener object with an EventDispatcher object so that the listener 
 receives notification of an event.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/events/EventDispatcher.html">EventDispatcher</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#appendText()" class="signatureLink">appendText</a>(newText:<a href="../../String.html">String</a>):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Appends the string specified by the newText parameter to the end of the text 
  of the text field.</div></td><td class="summaryTableOwnerCol">TextField</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="../../flash/events/EventDispatcher.html#dispatchEvent()" class="signatureLink">dispatchEvent</a>(event:<a href="../../flash/events/Event.html">Event</a>):<a href="../../Boolean.html">Boolean</a></div><div class="summaryTableDescription">Dispatches an event into the event flow.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/events/EventDispatcher.html">EventDispatcher</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="../../flash/display/DisplayObject.html#getBounds()" class="signatureLink">getBounds</a>(targetCoordinateSpace:<a href="../../flash/display/DisplayObject.html">DisplayObject</a>):<a href="../../flash/geom/Rectangle.html">Rectangle</a></div><div class="summaryTableDescription">Returns a rectangle that defines the area of the display object relative to the coordinate system
     of the targetCoordinateSpace object.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getCharBoundaries()" class="signatureLink">getCharBoundaries</a>(charIndex:<a href="../../int.html">int</a>):<a href="../../flash/geom/Rectangle.html">Rectangle</a></div><div class="summaryTableDescription">Returns a rectangle that is the bounding box of the character.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getCharIndexAtPoint()" class="signatureLink">getCharIndexAtPoint</a>(x:<a href="../../Number.html">Number</a>, y:<a href="../../Number.html">Number</a>):<a href="../../int.html">int</a></div><div class="summaryTableDescription">Returns the zero-based index value of the character at the point specified by the x
  and y parameters.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getFirstCharInParagraph()" class="signatureLink">getFirstCharInParagraph</a>(charIndex:<a href="../../int.html">int</a>):<a href="../../int.html">int</a></div><div class="summaryTableDescription">Given a character index, returns the index of the first character in the same paragraph.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getImageReference()" class="signatureLink">getImageReference</a>(id:<a href="../../String.html">String</a>):<a href="../../flash/display/DisplayObject.html">DisplayObject</a></div><div class="summaryTableDescription">Returns a DisplayObject reference for the given id, for an image or SWF file
  that has been added to an HTML-formatted text field by using an &lt;img> tag.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getLineIndexAtPoint()" class="signatureLink">getLineIndexAtPoint</a>(x:<a href="../../Number.html">Number</a>, y:<a href="../../Number.html">Number</a>):<a href="../../int.html">int</a></div><div class="summaryTableDescription">Returns the zero-based index value of the line at the point specified by the x
  and y parameters.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getLineIndexOfChar()" class="signatureLink">getLineIndexOfChar</a>(charIndex:<a href="../../int.html">int</a>):<a href="../../int.html">int</a></div><div class="summaryTableDescription">Returns the zero-based index value of the line containing the character specified 
  by the charIndex parameter.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getLineLength()" class="signatureLink">getLineLength</a>(lineIndex:<a href="../../int.html">int</a>):<a href="../../int.html">int</a></div><div class="summaryTableDescription">Returns the number of characters in a specific text line.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getLineMetrics()" class="signatureLink">getLineMetrics</a>(lineIndex:<a href="../../int.html">int</a>):<a href="../../flash/text/TextLineMetrics.html">TextLineMetrics</a></div><div class="summaryTableDescription">Returns metrics information about a given text line.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getLineOffset()" class="signatureLink">getLineOffset</a>(lineIndex:<a href="../../int.html">int</a>):<a href="../../int.html">int</a></div><div class="summaryTableDescription">Returns the character index of the first character in the line that 
  the lineIndex parameter specifies.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getLineText()" class="signatureLink">getLineText</a>(lineIndex:<a href="../../int.html">int</a>):<a href="../../String.html">String</a></div><div class="summaryTableDescription">Returns the text of the line specified by the lineIndex parameter.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getParagraphLength()" class="signatureLink">getParagraphLength</a>(charIndex:<a href="../../int.html">int</a>):<a href="../../int.html">int</a></div><div class="summaryTableDescription">Given a character index, returns the length of the paragraph containing the given character.</div></td><td class="summaryTableOwnerCol">TextField</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="../../flash/display/DisplayObject.html#getRect()" class="signatureLink">getRect</a>(targetCoordinateSpace:<a href="../../flash/display/DisplayObject.html">DisplayObject</a>):<a href="../../flash/geom/Rectangle.html">Rectangle</a></div><div class="summaryTableDescription">Returns a rectangle that defines the boundary of the display object, 
    based on the coordinate system defined by the targetCoordinateSpace 
    parameter, excluding any strokes on shapes.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getTextFormat()" class="signatureLink">getTextFormat</a>(beginIndex:<a href="../../int.html">int</a> = -1, endIndex:<a href="../../int.html">int</a> = -1):<a href="../../flash/text/TextFormat.html">TextFormat</a></div><div class="summaryTableDescription">Returns a TextFormat object that contains formatting information for the range of text that the
  beginIndex and endIndex parameters specify.</div></td><td class="summaryTableOwnerCol">TextField</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="../../flash/display/DisplayObject.html#globalToLocal()" class="signatureLink">globalToLocal</a>(point:<a href="../../flash/geom/Point.html">Point</a>):<a href="../../flash/geom/Point.html">Point</a></div><div class="summaryTableDescription">Converts the point object from the Stage (global) coordinates
     to the display object's (local) coordinates.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</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="../../flash/display/DisplayObject.html#globalToLocal3D()" class="signatureLink">globalToLocal3D</a>(point:<a href="../../flash/geom/Point.html">Point</a>):<a href="../../flash/geom/Vector3D.html">Vector3D</a></div><div class="summaryTableDescription">Converts a two-dimensional point from the Stage (global) coordinates to a
     three-dimensional display object's (local) coordinates.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</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="../../flash/events/EventDispatcher.html#hasEventListener()" class="signatureLink">hasEventListener</a>(type:<a href="../../String.html">String</a>):<a href="../../Boolean.html">Boolean</a></div><div class="summaryTableDescription">Checks whether the EventDispatcher object has any listeners registered for a specific type 
 of event.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/events/EventDispatcher.html">EventDispatcher</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#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="../../flash/display/DisplayObject.html#hitTestObject()" class="signatureLink">hitTestObject</a>(obj:<a href="../../flash/display/DisplayObject.html">DisplayObject</a>):<a href="../../Boolean.html">Boolean</a></div><div class="summaryTableDescription">Evaluates the display object to see if it overlaps or intersects with the
     obj display object.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</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="../../flash/display/DisplayObject.html#hitTestPoint()" class="signatureLink">hitTestPoint</a>(x:<a href="../../Number.html">Number</a>, y:<a href="../../Number.html">Number</a>, shapeFlag:<a href="../../Boolean.html">Boolean</a> = false):<a href="../../Boolean.html">Boolean</a></div><div class="summaryTableDescription">Evaluates the display object to see if it overlaps or intersects with the
     point specified by the x and y parameters.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#isFontCompatible()" class="signatureLink">isFontCompatible</a>(fontName:<a href="../../String.html">String</a>, fontStyle:<a href="../../String.html">String</a>):<a href="../../Boolean.html">Boolean</a></div><div class="summaryTableDescription">[static] Returns true if an embedded font is available with the specified fontName and fontStyle
  where Font.fontType is flash.text.FontType.EMBEDDED.</div></td><td class="summaryTableOwnerCol">TextField</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="../../flash/display/DisplayObject.html#local3DToGlobal()" class="signatureLink">local3DToGlobal</a>(point3d:<a href="../../flash/geom/Vector3D.html">Vector3D</a>):<a href="../../flash/geom/Point.html">Point</a></div><div class="summaryTableDescription">Converts a three-dimensional point of the three-dimensional display 
     object's (local) coordinates to a two-dimensional point in the Stage (global) coordinates.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</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="../../flash/display/DisplayObject.html#localToGlobal()" class="signatureLink">localToGlobal</a>(point:<a href="../../flash/geom/Point.html">Point</a>):<a href="../../flash/geom/Point.html">Point</a></div><div class="summaryTableDescription">Converts the point object from the display object's (local) coordinates to the
     Stage (global) coordinates.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</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="../../flash/events/EventDispatcher.html#removeEventListener()" class="signatureLink">removeEventListener</a>(type:<a href="../../String.html">String</a>, listener:<a href="../../Function.html">Function</a>, useCapture:<a href="../../Boolean.html">Boolean</a> = false):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Removes a listener from the EventDispatcher object.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/events/EventDispatcher.html">EventDispatcher</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#replaceSelectedText()" class="signatureLink">replaceSelectedText</a>(value:<a href="../../String.html">String</a>):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Replaces the current selection with the contents of the value parameter.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#replaceText()" class="signatureLink">replaceText</a>(beginIndex:<a href="../../int.html">int</a>, endIndex:<a href="../../int.html">int</a>, newText:<a href="../../String.html">String</a>):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Replaces the range of characters that the beginIndex and
  endIndex parameters specify with the contents
     of the newText parameter.</div></td><td class="summaryTableOwnerCol">TextField</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=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#setSelection()" class="signatureLink">setSelection</a>(beginIndex:<a href="../../int.html">int</a>, endIndex:<a href="../../int.html">int</a>):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Sets as selected the text designated by the index values of the
  first and last characters, which are specified with the beginIndex
  and endIndex parameters.</div></td><td class="summaryTableOwnerCol">TextField</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#setTextFormat()" class="signatureLink">setTextFormat</a>(format:<a href="../../flash/text/TextFormat.html">TextFormat</a>, beginIndex:<a href="../../int.html">int</a> = -1, endIndex:<a href="../../int.html">int</a> = -1):<a href="../../specialTypes.html#void">void</a></div><div class="summaryTableDescription">Applies the text formatting that the format parameter specifies to the specified text in a text field.</div></td><td class="summaryTableOwnerCol">TextField</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><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="../../flash/events/EventDispatcher.html#willTrigger()" class="signatureLink">willTrigger</a>(type:<a href="../../String.html">String</a>):<a href="../../Boolean.html">Boolean</a></div><div class="summaryTableDescription">Checks whether an event listener is registered with this EventDispatcher object or any of 
 its ancestors for the specified event type.</div></td><td class="summaryTableOwnerCol"><a href="../../flash/events/EventDispatcher.html">EventDispatcher</a></td></tr></table></div><a name="eventSummary"></a><div class="summarySection"><div class="summaryTableTitle">Events</div><div class="showHideLinks"><div id="hideInheritedEvent" class="hideInheritedEvent"><a class="showHideLink" href="#eventSummary" onclick="javascript:setInheritedVisible(false,'Event');"><img class="showHideLinkImage" src="../../images/expanded.gif"> Hide Inherited Events</a></div><div id="showInheritedEvent" class="showInheritedEvent"><a class="showHideLink" href="#eventSummary" onclick="javascript:setInheritedVisible(true,'Event');"><img class="showHideLinkImage" src="../../images/collapsed.gif"> Show Inherited Events</a></div></div><table cellspacing="0" cellpadding="3" class="summaryTable " id="summaryTableEvent"><tr><th>&nbsp;</th><th colspan="2">Event</th><th> Summary </th><th>Defined By</th></tr><tr class="hideInheritedEvent"><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="../../flash/events/EventDispatcher.html#event:activate" class="signatureLink">activate</a></div></td><td class="summaryTableDescription summaryTableCol">[broadcast event] Dispatched when the Flash Player or AIR application gains operating system focus and becomes active.</td><td class="summaryTableOwnerCol"><a href="../../flash/events/EventDispatcher.html">EventDispatcher</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/DisplayObject.html#event:added" class="signatureLink">added</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when a display object is added to the display list.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/DisplayObject.html#event:addedToStage" class="signatureLink">addedToStage</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when a display object is added to the on stage display list, either directly or through the addition of a sub tree in which the display object is contained.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#event:change" class="signatureLink">change</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched after a control value is modified, unlike the textInput event, which is dispatched before the value is modified.</td><td class="summaryTableOwnerCol">TextField</td></tr><tr class="hideInheritedEvent"><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="../../flash/display/InteractiveObject.html#event:clear" class="signatureLink">clear</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when the user selects 'Clear' (or 'Delete') from the text context menu.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/InteractiveObject.html#event:click" class="signatureLink">click</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when a user presses and releases the main button of the user's pointing device over the same InteractiveObject.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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"><img src="../../images/AirIcon12x12.gif" width="12" height="12" hspace="0" vspace="0" alt="AIR-only" title="Only available in the AIR runtime">&nbsp;<a href="../../flash/display/InteractiveObject.html#event:contextMenu" class="signatureLink">contextMenu</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when the user selects the context menu associated with this interactive object in an AIR application.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/InteractiveObject.html#event:copy" class="signatureLink">copy</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when the user activates the platform specific accelerator key combination for a copy operation or selects 'Copy' from the text context menu.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/InteractiveObject.html#event:cut" class="signatureLink">cut</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when the user activates the platform specific accelerator key combination for a cut operation or selects 'Cut' from the text context menu.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/events/EventDispatcher.html#event:deactivate" class="signatureLink">deactivate</a></div></td><td class="summaryTableDescription summaryTableCol">[broadcast event] Dispatched when the Flash Player or AIR application operating loses system focus and is becoming inactive.</td><td class="summaryTableOwnerCol"><a href="../../flash/events/EventDispatcher.html">EventDispatcher</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/InteractiveObject.html#event:doubleClick" class="signatureLink">doubleClick</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when a user presses and releases the main button of a pointing device twice in rapid succession over the same InteractiveObject when that object's doubleClickEnabled flag is set to true.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/DisplayObject.html#event:enterFrame" class="signatureLink">enterFrame</a></div></td><td class="summaryTableDescription summaryTableCol">[broadcast event] Dispatched when the playhead is entering a new frame.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/DisplayObject.html#event:exitFrame" class="signatureLink">exitFrame</a></div></td><td class="summaryTableDescription summaryTableCol">[broadcast event] Dispatched when the playhead is exiting the current frame.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/InteractiveObject.html#event:focusIn" class="signatureLink">focusIn</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched after a display object gains focus.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/InteractiveObject.html#event:focusOut" class="signatureLink">focusOut</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched after a display object loses focus.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/DisplayObject.html#event:frameConstructed" class="signatureLink">frameConstructed</a></div></td><td class="summaryTableDescription summaryTableCol">[broadcast event] Dispatched after the constructors of frame display objects have run but before frame scripts have run.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/InteractiveObject.html#event:keyDown" class="signatureLink">keyDown</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when the user presses a key.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/InteractiveObject.html#event:keyFocusChange" class="signatureLink">keyFocusChange</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when the user attempts to change focus by using keyboard navigation.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/InteractiveObject.html#event:keyUp" class="signatureLink">keyUp</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when the user releases a key.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#event:link" class="signatureLink">link</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when a user clicks a hyperlink in an HTML-enabled text field, where the URL begins with "event:".</td><td class="summaryTableOwnerCol">TextField</td></tr><tr class="hideInheritedEvent"><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"><img src="../../images/AirIcon12x12.gif" width="12" height="12" hspace="0" vspace="0" alt="AIR-only" title="Only available in the AIR runtime">&nbsp;<a href="../../flash/display/InteractiveObject.html#event:middleClick" class="signatureLink">middleClick</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when a user presses and releases the middle button of the user's pointing device over the same InteractiveObject.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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"><img src="../../images/AirIcon12x12.gif" width="12" height="12" hspace="0" vspace="0" alt="AIR-only" title="Only available in the AIR runtime">&nbsp;<a href="../../flash/display/InteractiveObject.html#event:middleMouseDown" class="signatureLink">middleMouseDown</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when a user presses the middle pointing device button over an InteractiveObject instance.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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"><img src="../../images/AirIcon12x12.gif" width="12" height="12" hspace="0" vspace="0" alt="AIR-only" title="Only available in the AIR runtime">&nbsp;<a href="../../flash/display/InteractiveObject.html#event:middleMouseUp" class="signatureLink">middleMouseUp</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when a user releases the pointing device button over an InteractiveObject instance.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/InteractiveObject.html#event:mouseDown" class="signatureLink">mouseDown</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when a user presses the pointing device button over an InteractiveObject instance.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/InteractiveObject.html#event:mouseFocusChange" class="signatureLink">mouseFocusChange</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when the user attempts to change focus by using a pointer device.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/InteractiveObject.html#event:mouseMove" class="signatureLink">mouseMove</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when a user moves the pointing device while it is over an InteractiveObject.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/InteractiveObject.html#event:mouseOut" class="signatureLink">mouseOut</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when the user moves a pointing device away from an InteractiveObject instance.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/InteractiveObject.html#event:mouseOver" class="signatureLink">mouseOver</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when the user moves a pointing device over an InteractiveObject instance.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/InteractiveObject.html#event:mouseUp" class="signatureLink">mouseUp</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when a user releases the pointing device button over an InteractiveObject instance.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/InteractiveObject.html#event:mouseWheel" class="signatureLink">mouseWheel</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when a mouse wheel is spun over an InteractiveObject instance.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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"><img src="../../images/AirIcon12x12.gif" width="12" height="12" hspace="0" vspace="0" alt="AIR-only" title="Only available in the AIR runtime">&nbsp;<a href="../../flash/display/InteractiveObject.html#event:nativeDragComplete" class="signatureLink">nativeDragComplete</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched by the drag initiator InteractiveObject when the user releases the drag gesture.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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"><img src="../../images/AirIcon12x12.gif" width="12" height="12" hspace="0" vspace="0" alt="AIR-only" title="Only available in the AIR runtime">&nbsp;<a href="../../flash/display/InteractiveObject.html#event:nativeDragDrop" class="signatureLink">nativeDragDrop</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched by the target InteractiveObject when a dragged object is dropped on it and the drop has been accepted with a call to DragManager.acceptDragDrop().</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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"><img src="../../images/AirIcon12x12.gif" width="12" height="12" hspace="0" vspace="0" alt="AIR-only" title="Only available in the AIR runtime">&nbsp;<a href="../../flash/display/InteractiveObject.html#event:nativeDragEnter" class="signatureLink">nativeDragEnter</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched by an InteractiveObject when a drag gesture enters its boundary.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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"><img src="../../images/AirIcon12x12.gif" width="12" height="12" hspace="0" vspace="0" alt="AIR-only" title="Only available in the AIR runtime">&nbsp;<a href="../../flash/display/InteractiveObject.html#event:nativeDragExit" class="signatureLink">nativeDragExit</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched by an InteractiveObject when a drag gesture leaves its boundary.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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"><img src="../../images/AirIcon12x12.gif" width="12" height="12" hspace="0" vspace="0" alt="AIR-only" title="Only available in the AIR runtime">&nbsp;<a href="../../flash/display/InteractiveObject.html#event:nativeDragOver" class="signatureLink">nativeDragOver</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched by an InteractiveObject continually while a drag gesture remains within its boundary.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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"><img src="../../images/AirIcon12x12.gif" width="12" height="12" hspace="0" vspace="0" alt="AIR-only" title="Only available in the AIR runtime">&nbsp;<a href="../../flash/display/InteractiveObject.html#event:nativeDragStart" class="signatureLink">nativeDragStart</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched at the beginning of a drag operation by the InteractiveObject that is specified as the drag initiator in the DragManager.doDrag() call.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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"><img src="../../images/AirIcon12x12.gif" width="12" height="12" hspace="0" vspace="0" alt="AIR-only" title="Only available in the AIR runtime">&nbsp;<a href="../../flash/display/InteractiveObject.html#event:nativeDragUpdate" class="signatureLink">nativeDragUpdate</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched during a drag operation by the InteractiveObject that is specified as the drag initiator in the DragManager.doDrag() call.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/InteractiveObject.html#event:paste" class="signatureLink">paste</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when the user activates the platform specific accelerator key combination for a paste operation or selects 'Paste' from the text context menu.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/DisplayObject.html#event:removed" class="signatureLink">removed</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when a display object is about to be removed from the display list.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/DisplayObject.html#event:removedFromStage" class="signatureLink">removedFromStage</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when a display object is about to be removed from the display list, either directly or through the removal of a sub tree in which the display object is contained.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/DisplayObject.html#event:render" class="signatureLink">render</a></div></td><td class="summaryTableDescription summaryTableCol">[broadcast event] Dispatched when the display list is about to be updated and rendered.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/DisplayObject.html">DisplayObject</a></td></tr><tr class="hideInheritedEvent"><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"><img src="../../images/AirIcon12x12.gif" width="12" height="12" hspace="0" vspace="0" alt="AIR-only" title="Only available in the AIR runtime">&nbsp;<a href="../../flash/display/InteractiveObject.html#event:rightClick" class="signatureLink">rightClick</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when a user presses and releases the right button of the user's pointing device over the same InteractiveObject.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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"><img src="../../images/AirIcon12x12.gif" width="12" height="12" hspace="0" vspace="0" alt="AIR-only" title="Only available in the AIR runtime">&nbsp;<a href="../../flash/display/InteractiveObject.html#event:rightMouseDown" class="signatureLink">rightMouseDown</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when a user presses the pointing device button over an InteractiveObject instance.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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"><img src="../../images/AirIcon12x12.gif" width="12" height="12" hspace="0" vspace="0" alt="AIR-only" title="Only available in the AIR runtime">&nbsp;<a href="../../flash/display/InteractiveObject.html#event:rightMouseUp" class="signatureLink">rightMouseUp</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when a user releases the pointing device button over an InteractiveObject instance.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/InteractiveObject.html#event:rollOut" class="signatureLink">rollOut</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when the user moves a pointing device away from an InteractiveObject instance.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/InteractiveObject.html#event:rollOver" class="signatureLink">rollOver</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when the user moves a pointing device over an InteractiveObject instance.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#event:scroll" class="signatureLink">scroll</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched by a TextField object after the user scrolls.</td><td class="summaryTableOwnerCol">TextField</td></tr><tr class="hideInheritedEvent"><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="../../flash/display/InteractiveObject.html#event:selectAll" class="signatureLink">selectAll</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when the user activates the platform specific accelerator key combination for a select all operation or selects 'Select All' from the text context menu.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/InteractiveObject.html#event:tabChildrenChange" class="signatureLink">tabChildrenChange</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when the value of the object's tabChildren flag changes.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/InteractiveObject.html#event:tabEnabledChange" class="signatureLink">tabEnabledChange</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when the object's tabEnabled flag changes.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class="hideInheritedEvent"><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="../../flash/display/InteractiveObject.html#event:tabIndexChange" class="signatureLink">tabIndexChange</a></div></td><td class="summaryTableDescription summaryTableCol">Dispatched when the value of the object's tabIndex property changes.</td><td class="summaryTableOwnerCol"><a href="../../flash/display/InteractiveObject.html">InteractiveObject</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#event:textInput" class="signatureLink">textInput</a></div></td><td class="summaryTableDescription summaryTableCol">Flash Player dispatches the textInput event when a user enters one or more characters of text.</td><td class="summaryTableOwnerCol">TextField</td></tr></table></div><script language="javascript" type="text/javascript"><!--
                      showHideInherited();
                      --></script><div class="MainContent"><div class="detailSectionHeader">Property Detail</div><a name="propertyDetail"></a><a name="alwaysShowSelection"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">alwaysShowSelection</td><td class="detailHeaderType">property</td></tr></table><div class="detailBody"><code>alwaysShowSelection:<a href="../../Boolean.html">Boolean</a></code>&nbsp;&nbsp;[read-write] <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>
          When set to
          <code>true</code>
          and the text field is not in focus, Flash Player highlights the 
 selection in the text field in gray. When set to
          <code>false</code>
          and the text field is not in
 focus, Flash Player does not highlight the selection in the text field.
        </p><p> The default value is <code>false.</code></p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get alwaysShowSelection():<a href="../../Boolean.html">Boolean</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set alwaysShowSelection(value:<a href="../../Boolean.html">Boolean</a>):<a href="../../specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="../../flash/display/Stage.html#focus" target="">flash.display.Stage.focus</a></div><br/><span class="label"> Example </span><br/><div class="detailBody">
          Compile and run the following file. When you run the file, drag to select text 
 in each of the two text fields, and notice the difference in selection highlighting when you 
 select text in the two text fields (changing focus):
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFieldType;

    public class TextField_alwaysShowSelection extends Sprite {
        public function TextField_alwaysShowSelection() {
            var label1:TextField = createCustomTextField(0, 20, 200, 20);
            label1.text = "This text is selected.";
            label1.setSelection(0, 9);
            label1.alwaysShowSelection = true;

            var label2:TextField = createCustomTextField(0, 50, 200, 20);
            label2.text = "Drag to select some of this text.";
        }

        private function createCustomTextField(x:Number, y:Number, width:Number, height:Number):TextField {
            var result:TextField = new TextField();
            result.x = x; result.y = y;
            result.width = width; result.height = height;
            addChild(result);
            return result;
        }
    }
}</pre></div>
        </div></div><a name="propertyDetail"></a><a name="antiAliasType"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">antiAliasType</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>antiAliasType:<a href="../../String.html">String</a></code>&nbsp;&nbsp;[read-write] <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>
          The type of anti-aliasing used for this text field. Use
          <code>flash.text.AntiAliasType</code>
          constants for this property. You can control this setting only if the font is
  embedded (with the
          <code>embedFonts</code>
          property set to
          <code>true</code>
          ). 
  The default setting is
          <code>flash.text.AntiAliasType.NORMAL</code>
          .
          <p>To set values for this property, use the following string values:</p>
          
          <table class="innertable" ><tr><th>String value</th><th>Description</th></tr><tr><td>
                    <code>flash.text.AntiAliasType.NORMAL</code>
                  </td><td>Applies the regular text anti-aliasing. This value matches the type of anti-aliasing that
       Flash Player 7 and earlier versions used.</td></tr><tr><td>
                    <code>flash.text.AntiAliasType.ADVANCED</code>
                  </td><td>Applies advanced anti-aliasing, which makes text more legible. (This feature became
       available in Flash Player 8.) Advanced anti-aliasing allows for high-quality rendering
       of font faces at small sizes. It is best used with applications
       with a lot of small text. Advanced anti-aliasing is not recommended for
       fonts that are larger than 48 points.</td></tr></table>
          
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get antiAliasType():<a href="../../String.html">String</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set antiAliasType(value:<a href="../../String.html">String</a>):<a href="../../specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="AntiAliasType.html" target="">flash.text.AntiAliasType</a><br/><a href="TextField.html#embedFonts" target="">flash.text.TextField.embedFonts</a></div></div><a name="propertyDetail"></a><a name="autoSize"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">autoSize</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>autoSize:<a href="../../String.html">String</a></code>&nbsp;&nbsp;[read-write] <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>
          Controls automatic sizing and alignment of text fields.
  Acceptable values for the
          <code>TextFieldAutoSize</code>
          constants:
          <code>TextFieldAutoSize.NONE</code>
          (the default),
          <code>TextFieldAutoSize.LEFT</code>
          ,
          <code>TextFieldAutoSize.RIGHT</code>
          , and
          <code>TextFieldAutoSize.CENTER</code>
          .
          <p>
            If
            <code>autoSize</code>
            is set to
            <code>TextFieldAutoSize.NONE</code>
            (the default) no resizing occurs.
          </p>
          
          <p>
            If
            <code>autoSize</code>
            is set to
            <code>TextFieldAutoSize.LEFT</code>
            , the text is
  treated as left-justified text, meaning that the left margin of the text field remains fixed and any
  resizing of a single line of the text field is on the right margin. If the text includes a line break
  (for example,
            <code>"\n"</code>
            or
            <code>"\r"</code>
            ), the bottom is also resized to fit the next
  line of text. If
            <code>wordWrap</code>
            is also set to
            <code>true</code>
            , only the bottom
  of the text field is resized and the right side remains fixed.
          </p>
          
          <p>
            If
            <code>autoSize</code>
            is set to
            <code>TextFieldAutoSize.RIGHT</code>
            , the text is treated as
  right-justified text, meaning that the right margin of the text field remains fixed and any resizing
  of a single line of the text field is on the left margin. If the text includes a line break
  (for example,
            <code>"\n" or "\r")</code>
            , the bottom is also resized to fit the next
  line of text. If
            <code>wordWrap</code>
            is also set to
            <code>true</code>
            , only the bottom
  of the text field is resized and the left side remains fixed.
          </p>
          
          <p>
            If
            <code>autoSize</code>
            is set to
            <code>TextFieldAutoSize.CENTER</code>
            , the text is treated as
  center-justified text, meaning that any resizing of a single line of the text field is equally distributed
  to both the right and left margins. If the text includes a line break (for example,
            <code>"\n"</code>
            or
            <code>"\r"</code>
            ), the bottom is also resized to fit the next line of text. If
            <code>wordWrap</code>
            is also
  set to
            <code>true</code>
            , only the bottom of the text field is resized and the left and
  right sides remain fixed.
          </p>
          
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get autoSize():<a href="../../String.html">String</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set autoSize(value:<a href="../../String.html">String</a>):<a href="../../specialTypes.html#void">void</a></code><br/><br/><span class="label"> Throws </span><br/><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../ArgumentError.html">ArgumentError</a> </code> &mdash; 
              The
              <code>autoSize</code>
              specified is not a member of flash.text.TextFieldAutoSize.
            </td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextFieldAutoSize.html" target="">flash.text.TextFieldAutoSize</a><br/><a href="TextField.html#autoSize" target="">flash.text.TextField.autoSize</a><br/><a href="TextField.html#wordWrap" target="">flash.text.TextField.wordWrap</a></div></div><a name="propertyDetail"></a><a name="background"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">background</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>background:<a href="../../Boolean.html">Boolean</a></code>&nbsp;&nbsp;[read-write] <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 whether the text field has a background fill. If
          <code>true</code>
          , the text field has a
  background fill. If
          <code>false</code>
          , the text field has no background fill.
  Use the
          <code>backgroundColor</code>
          property to set the background color of a text field.
        </p><p> The default value is <code>false.</code></p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get background():<a href="../../Boolean.html">Boolean</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set background(value:<a href="../../Boolean.html">Boolean</a>):<a href="../../specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#backgroundColor" target="">flash.text.TextField.backgroundColor</a></div></div><a name="propertyDetail"></a><a name="backgroundColor"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">backgroundColor</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>backgroundColor:<a href="../../uint.html">uint</a></code>&nbsp;&nbsp;[read-write] <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>
          The color of the text field background. The default value is
          <code>0xFFFFFF</code>
          (white). 
  This property can be retrieved or set, even if there currently is no background, but the 
  color is visible only if the text field has the
          <code>background</code>
          property set to
          <code>true</code>
          .
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get backgroundColor():<a href="../../uint.html">uint</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set backgroundColor(value:<a href="../../uint.html">uint</a>):<a href="../../specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#background" target="">flash.text.TextField.background</a></div></div><a name="propertyDetail"></a><a name="border"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">border</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>border:<a href="../../Boolean.html">Boolean</a></code>&nbsp;&nbsp;[read-write] <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 whether the text field has a border. If
          <code>true</code>
          , the text field has a border.
  If
          <code>false</code>
          , the text field has no border. Use the
          <code>borderColor</code>
          property 
  to set the border color.
        </p><p> The default value is <code>false.</code></p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get border():<a href="../../Boolean.html">Boolean</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set border(value:<a href="../../Boolean.html">Boolean</a>):<a href="../../specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#borderColor" target="">flash.text.TextField.borderColor</a></div></div><a name="propertyDetail"></a><a name="borderColor"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">borderColor</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>borderColor:<a href="../../uint.html">uint</a></code>&nbsp;&nbsp;[read-write] <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>
          The color of the text field border. The default value is
          <code>0x000000</code>
          (black). 
  This property can be retrieved or set, even if there currently is no border, but the 
  color is visible only if the text field has the
          <code>border</code>
          property set to
          <code>true</code>
          .
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get borderColor():<a href="../../uint.html">uint</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set borderColor(value:<a href="../../uint.html">uint</a>):<a href="../../specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#border" target="">flash.text.TextField.border</a></div></div><a name="propertyDetail"></a><a name="bottomScrollV"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">bottomScrollV</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>bottomScrollV:<a href="../../int.html">int</a></code>&nbsp;&nbsp;[read-only] <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>
          An integer (1-based index) that indicates the bottommost line that is currently visible in
  the specified text field. Think of the text field as a window onto a block of text.
  The
          <code>scrollV</code>
          property is the 1-based index of the topmost visible line
  in the window.
          <p>
            All the text between the lines indicated by
            <code>scrollV</code>
            and
            <code>bottomScrollV</code>
            is currently visible in the text field.
          </p>
          
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get bottomScrollV():<a href="../../int.html">int</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#scrollV" target="">flash.text.TextField.scrollV</a></div></div><a name="propertyDetail"></a><a name="caretIndex"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">caretIndex</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>caretIndex:<a href="../../int.html">int</a></code>&nbsp;&nbsp;[read-only] <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>
          The index of the insertion point (caret) position. If no insertion point is displayed,
     the value is the position the insertion point would be if you restored focus to the field (typically where the 
     insertion point last was, or 0 if the field has not had focus).
          <p>Selection span indexes are zero-based (for example, the first position is 0,
  the second position is 1, and so on).</p>
          
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get caretIndex():<a href="../../int.html">int</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#selectable" target="">selectable</a><br/><a href="TextField.html#selectionBeginIndex" target="">selectionBeginIndex</a><br/><a href="TextField.html#selectionEndIndex" target="">selectionEndIndex</a></div><br/><span class="label"> Example </span><br/><div class="detailBody">
          In this example, a TextField instance is created and populated with text.
 An event listener is assigned so that when the user clicks on the TextField, the
          <code>printCursorPosition</code>
          method is called. In that case, the values of the
          <code>caretIndex</code>
          ,
          <code>selectionBeginIndex</code>
          , and
          <code>selectionEndIndex</code>
          properties are output.
          <p>
            Run this example and try clicking in the TextField to select text. Then click in the field without
 selecting text. When you click in the text without making a selection, the
            <code>caretIndex</code>
            property indicates where the insertion point occurs, and the
            <code>selectionBeginIndex</code>
            and
            <code>selectionEndIndex</code>
            properties equal the
            <code>caretIndex</code>
            property value.
          </p>
          
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.events.MouseEvent;
    import flash.text.TextField;
    import flash.text.TextFieldType;

    public class TextField_caretIndex extends Sprite {
        public function TextField_caretIndex() {
            var tf:TextField = createCustomTextField(10, 10, 100, 100);
            tf.wordWrap = true;
            tf.type = TextFieldType.INPUT;
            tf.text = "Click in this text field. Compare the difference between clicking without selecting versus clicking and selecting text.";
            tf.addEventListener(MouseEvent.CLICK, printCursorPosition);
        }

        private function printCursorPosition(event:MouseEvent):void {
            var tf:TextField = TextField(event.target);
            trace("caretIndex:", tf.caretIndex);
            trace("selectionBeginIndex:", tf.selectionBeginIndex);
            trace("selectionEndIndex:", tf.selectionEndIndex);
        }

        private function createCustomTextField(x:Number, y:Number, width:Number, height:Number):TextField {
            var result:TextField = new TextField();
            result.x = x;
            result.y = y;
            result.width = width;
            result.height = height;
            addChild(result);
            return result;
        }
    }
}</pre></div>
        </div></div><a name="propertyDetail"></a><a name="condenseWhite"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">condenseWhite</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>condenseWhite:<a href="../../Boolean.html">Boolean</a></code>&nbsp;&nbsp;[read-write] <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>
          A Boolean value that specifies whether extra white space (spaces, line breaks, and so on)
  in a text field with HTML text is removed. The default value is
          <code>false</code>
          .
  The
          <code>condenseWhite</code>
          property only affects text set with
  the
          <code>htmlText</code>
          property, not the
          <code>text</code>
          property. If you set 
  text with the
          <code>text</code>
          property,
          <code>condenseWhite</code>
          is ignored.
          <p>
            If
            <code>condenseWhite</code>
            is set to
            <code>true</code>
            , use standard HTML commands such as
            <code>&lt;BR&gt;</code>
            and
            <code>&lt;P&gt;</code>
            to place line breaks in the text field.
          </p>
          
          <p>
            Set the
            <code>condenseWhite</code>
            property before setting the
            <code>htmlText</code>
            property.
          </p>
          
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get condenseWhite():<a href="../../Boolean.html">Boolean</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set condenseWhite(value:<a href="../../Boolean.html">Boolean</a>):<a href="../../specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#htmlText" target="">flash.text.TextField.htmlText</a></div><br/><span class="label"> Example </span><br/><div class="detailBody">
          The following shows the difference between setting the
          <code>condenseWhite</code>
          setting to
          <code>false</code>
          and setting it to
          <code>true</code>
          :
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.text.TextField;

    public class TextField_condenseWhite extends Sprite {
        public function TextField_condenseWhite() {
            var tf1:TextField = createCustomTextField(0, 0, 200, 50);
            tf1.condenseWhite = false;
            tf1.htmlText = "keep    on\n\ttruckin'";
            
            var tf2:TextField = createCustomTextField(0, 120, 200, 50);
            tf2.condenseWhite = true;
            tf2.htmlText = "keep    on\n\ttruckin'";
        }

        private function createCustomTextField(x:Number, y:Number, width:Number, height:Number):TextField {
            var result:TextField = new TextField();
            result.x = x;
            result.y = y;
            result.width = width;
            result.height = height;
            result.border = true;
            addChild(result);
            return result;
        }
    }
}</pre></div>
        </div></div><a name="propertyDetail"></a><a name="defaultTextFormat"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">defaultTextFormat</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>defaultTextFormat:<a href="../../flash/text/TextFormat.html">TextFormat</a></code>&nbsp;&nbsp;[read-write] <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 the format applied to newly inserted text, such as text entered by a user or text inserted with the
          <code>replaceSelectedText()</code>
          method.
          <p>
            <b>Note:</b>
            When selecting characters to be replaced with
            <code>setSelection()</code>
            and
            <code>replaceSelectedText()</code>
            , the
            <code>defaultTextFormat</code>
            will be applied only if the 
  text has been selected up to and including the last character. Here is an example:
          </p>
          
          <pre>var my_txt:TextField new TextField();
  my_txt.text = "Flash Macintosh version";
  var my_fmt:TextFormat = new TextFormat();
  my_fmt.color = 0xFF0000;
  my_txt.defaultTextFormat = my_fmt;
  my_txt.setSelection(6,15); // partial text selected - defaultTextFormat not applied
  my_txt.setSelection(6,23); // text selected to end - defaultTextFormat applied
  my_txt.replaceSelectedText("Windows version");</pre>
          
          <p>
            When you access the
            <code>defaultTextFormat</code>
            property, the returned TextFormat object has all
  of its properties defined. No property is
            <code>null</code>
            .
          </p>
          
          <p>
            <b>Note:</b>
            You can't set this property if a style sheet is applied to the text field.
          </p>
          
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get defaultTextFormat():<a href="../../flash/text/TextFormat.html">TextFormat</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set defaultTextFormat(value:<a href="../../flash/text/TextFormat.html">TextFormat</a>):<a href="../../specialTypes.html#void">void</a></code><br/><br/><span class="label"> Throws </span><br/><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../Error.html">Error</a> </code> &mdash; This method cannot be used on a text field with a style sheet.</td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#replaceSelectedText()" target="">flash.text.TextField.replaceSelectedText()</a><br/><a href="TextField.html#getTextFormat()" target="">flash.text.TextField.getTextFormat()</a><br/><a href="TextField.html#setTextFormat()" target="">flash.text.TextField.setTextFormat()</a></div></div><a name="propertyDetail"></a><a name="displayAsPassword"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">displayAsPassword</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>displayAsPassword:<a href="../../Boolean.html">Boolean</a></code>&nbsp;&nbsp;[read-write] <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 whether the text field is a password text field. If the value of this property is
          <code>true</code>
          ,
  the text field is treated as a password text field and hides the input characters using asterisks instead of the
  actual characters. If
          <code>false</code>
          , the text field is not treated as a password text field. When password mode
  is enabled, the Cut and Copy commands and their corresponding keyboard shortcuts will
  not function.  This security mechanism prevents an unscrupulous user from using the shortcuts to discover
  a password on an unattended computer.
        </p><p> The default value is <code>false.</code></p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get displayAsPassword():<a href="../../Boolean.html">Boolean</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set displayAsPassword(value:<a href="../../Boolean.html">Boolean</a>):<a href="../../specialTypes.html#void">void</a></code><br/></div><a name="propertyDetail"></a><a name="embedFonts"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">embedFonts</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>embedFonts:<a href="../../Boolean.html">Boolean</a></code>&nbsp;&nbsp;[read-write] <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 whether to render by using embedded font outlines. 
  If
          <code>false</code>
          , Flash Player renders the text field by using
  device fonts.
          <p>
            If you set the
            <code>embedFonts</code>
            property to
            <code>true</code>
            for a text field, 
  you must specify a font for that text by using the
            <code>font</code>
            property of 
  a TextFormat object applied to the text field.
  If the specified font is not embedded in the SWF file, the text is not displayed.
          </p>
          
        </p><p> The default value is <code>false.</code></p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get embedFonts():<a href="../../Boolean.html">Boolean</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set embedFonts(value:<a href="../../Boolean.html">Boolean</a>):<a href="../../specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="Font.html#enumerateFonts()" target="">Font.enumerateFonts()</a></div></div><a name="propertyDetail"></a><a name="gridFitType"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">gridFitType</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>gridFitType:<a href="../../String.html">String</a></code>&nbsp;&nbsp;[read-write] <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>
          The type of grid fitting used for this text field. This property applies only if the
          <code>flash.text.AntiAliasType</code>
          property of the text field is set to
          <code>flash.text.AntiAliasType.ADVANCED</code>
          .
          <p>The type of grid fitting used determines whether Flash Player forces strong horizontal and 
  vertical lines to fit to a pixel or subpixel grid, or not at all.</p>
          
          <p>
            For the
            <code>flash.text.GridFitType</code>
            property, you can use the following string values:
          </p>
          
          <table class="innertable" ><tr><th>String value</th><th>Description</th></tr><tr><td>
                    <code>flash.text.GridFitType.NONE</code>
                  </td><td>Specifies no grid fitting. Horizontal and vertical lines in the glyphs are not
          forced to the pixel grid. This setting is recommended for animation or
          for large font sizes.</td></tr><tr><td>
                    <code>flash.text.GridFitType.PIXEL</code>
                  </td><td>
                    Specifies that strong horizontal and vertical lines are fit to the
          pixel grid. This setting works only for left-aligned text fields.
          To use this setting, the
                    <code>flash.dispaly.AntiAliasType</code>
                    property of the text field
      must be set to
                    <code>flash.text.AntiAliasType.ADVANCED</code>
                    .
      This setting generally provides the best legibility for
          left-aligned text.
                  </td></tr><tr><td>
                    <code>flash.text.GridFitType.SUBPIXEL</code>
                  </td><td>
                    Specifies that strong horizontal and vertical lines are fit to the subpixel grid on
          an LCD monitor. To use this setting, the
                    <code>flash.text.AntiAliasType</code>
                    property of the text field must be set to
                    <code>flash.text.AntiAliasType.ADVANCED</code>
                    . The
                    <code>flash.text.GridFitType.SUBPIXEL</code>
                    setting is often good
      for right-aligned or centered
          dynamic text, and it is sometimes a useful trade-off for animation versus text quality.
                  </td></tr></table>
          
        </p><p> The default value is <code>pixel.</code></p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get gridFitType():<a href="../../String.html">String</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set gridFitType(value:<a href="../../String.html">String</a>):<a href="../../specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="GridFitType.html" target="">flash.text.GridFitType</a><br/><a href="TextField.html#antiAliasType" target="">flash.text.TextField.antiAliasType</a><br/><a href="AntiAliasType.html" target="">flash.text.AntiAliasType</a></div><br/><span class="label"> Example </span><br/><div class="detailBody">
          The following example shows three text fields with different 
 settings for the
          <code>gridFitType</code>
          property. When you use this example, 
 notice the difference in legibility for the first two lines. Also note the optimal use of
          <code>GridFitType.PIXEL</code>
          for left-aligned text and
          <code>GridFitType.SUBPIXEL</code>
          for right-aligned text.
          <div class="listing"><pre>package
{
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFormat;
    import flash.text.TextFieldAutoSize;
    import flash.text.AntiAliasType;
    import flash.text.GridFitType;

    public class gridFitTypeExample extends Sprite
    {
        public function gridFitTypeExample()
        {
    var format1:TextFormat = new TextFormat();
    format1.font="Arial";
    format1.size=12;

    var tf1:TextField = createCustomTextField(0,0,format1,"NONE",TextFieldAutoSize.LEFT,GridFitType.NONE);
    
    var tf2:TextField = createCustomTextField(0,30,format1,"PIXEL",TextFieldAutoSize.LEFT,GridFitType.PIXEL);

    var tf3:TextField = createCustomTextField(300,60,format1,"SUBPIXEL",TextFieldAutoSize.RIGHT,GridFitType.SUBPIXEL);

        }
        private function createCustomTextField(x:Number,y:Number,fm:TextFormat,tl:String,tfs:String,gft:String):TextField 
        {
            var result:TextField = new TextField();
            result.x=x;
            result.y=y;
            result.embedFonts=true;
            result.antiAliasType=AntiAliasType.ADVANCED;
            result.text="This text uses a gridFitType of " + tl;
            result.autoSize=tfs;
        result.gridFitType=gft;
            result.setTextFormat(fm);
            addChild(result);
            return result;
        }
    }
}</pre></div>
        </div></div><a name="propertyDetail"></a><a name="htmlText"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">htmlText</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>htmlText:<a href="../../String.html">String</a></code>&nbsp;&nbsp;[read-write] <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>
          Contains the HTML representation of the text field contents.
          <p>Flash Player supports the following HTML tags:</p>
          
          <table class="innertable" ><tr><th>Tag</th><th>Description</th></tr><tr><td>Anchor tag</td><td>
                    The
                    <code>&lt;a&gt;</code>
                    tag creates a hypertext link and supports the following attributes:
                    <ul><li>
                        
                        <code>target</code>
                        : Specifies the name of the target window where you load the page. 
  Options include
                        <code>_self</code>
                        ,
                        <code>_blank</code>
                        ,
                        <code>_parent</code>
                        , and
                        <code>_top</code>
                        . The
                        <code>_self</code>
                        option specifies the current frame in the current window,
                        <code>_blank</code>
                        specifies a new window,
                        <code>_parent</code>
                        specifies the parent of the 
  current frame, and
                        <code>_top</code>
                        specifies the top-level frame in the current window.
                      </li><li>
                        
                        <code>href</code>
                        : Specifies a URL or an ActionScript
                        <code>link</code>
                        event.The URL can 
  be either absolute or relative to the location of the SWF file that 
  is loading the page. An example of an absolute reference to a URL is
                        <code>http://www.adobe.com</code>
                        ; an example of a relative reference is
                        <code>/index.html</code>
                        . Absolute URLs must be prefixed with 
  http://; otherwise, Flash Player or AIR treats them as relative URLs. 
  
  You can use the
                        <code>link</code>
                        event to cause the link to execute an ActionScript 
  function in a SWF file instead of opening a URL. To specify a
                        <code>link</code>
                        event, use 
  the event scheme instead of the http scheme in your
                        <code>href</code>
                        attribute. An example 
  is
                        <code>href="event:myText"</code>
                        instead of
                        <code>href="http://myURL"</code>
                        ; when the 
  user clicks a hypertext link that contains the event scheme, the text field dispatches a
                        <code>link</code>
                        TextEvent with its
                        <code>text</code>
                        property set to "
                        <code>myText</code>
                        ". You can then create an ActionScript 
  function that executes whenever the link TextEvent is dispatched. 
    You can also define
                        <code>a:link</code>
                        ,
                        <code>a:hover</code>
                        , and
                        <code>a:active</code>
                        styles for anchor tags by using style sheets.
                      </li></ul>
                    
                  </td></tr><tr><td>Bold tag</td><td>
                    The
                    <code>&lt;b&gt;</code>
                    tag renders text as bold. A bold typeface must be available for the font used.
                  </td></tr><tr><td>Break tag</td><td>
                    The
                    <code>&lt;br&gt;</code>
                    tag creates a line break in the text field. Set the text field to 
  be a multiline text field to use this tag.
                  </td></tr><tr><td>Font tag</td><td>
                    The
                    <code>&lt;font&gt;</code>
                    tag specifies a font or list of fonts to display the text.The font tag 
  supports the following attributes:
                    <ul><li>
                        
                        <code>color</code>
                        : Only hexadecimal color (
                        <code>#FFFFFF</code>
                        ) values are supported.
                      </li><li>
                        
                        <code>face</code>
                        : Specifies the name of the font to use. As shown in the following example, 
  you can specify a list of comma-delimited font names, in which case Flash Player selects the first available 
  font. If the specified font is not installed on the local computer system or isn't embedded in the SWF file, 
  Flash Player selects a substitute font.
                      </li><li>
                        
                        <code>size</code>
                        : Specifies the size of the font. You can use absolute pixel sizes, such as 16 or 18, 
  or relative point sizes, such as +2 or -4.
                      </li></ul>
                    
                  </td></tr><tr><td>Image tag</td><td>
                    The
                    <code>&lt;img&gt;</code>
                    tag lets you embed external image files (JPEG, GIF, PNG), SWF files, and 
  movie clips inside text fields. Text automatically flows around images you embed in text fields. You 
  must set the text field to be multiline to wrap text around an image.
                    <p>
                      The
                      <code>&lt;img&gt;</code>
                      tag supports the following attributes:
                    </p>
                    
                    <ul><li>
                        
                        <code>src</code>
                        : Specifies the URL to an image or SWF file, or the linkage identifier for a movie clip 
  symbol in the library. This attribute is required; all other attributes are optional. External files (JPEG, GIF, PNG, 
  and SWF files) do not show until they are downloaded completely.
                      </li><li>
                        
                        <code>width</code>
                        : The width of the image, SWF file, or movie clip being inserted, in pixels.
                      </li><li>
                        
                        <code>height</code>
                        : The height of the image, SWF file, or movie clip being inserted, in pixels.
                      </li><li>
                        
                        <code>align</code>
                        : Specifies the horizontal alignment of the embedded image within the text field. 
     Valid values are
                        <code>left</code>
                        and
                        <code>right</code>
                        . The default value is
                        <code>left</code>
                        .
                      </li><li>
                        
                        <code>hspace</code>
                        : Specifies the amount of horizontal space that surrounds the image where 
  no text appears. The default value is 8.
                      </li><li>
                        
                        <code>vspace</code>
                        : Specifies the amount of vertical space that surrounds the image where no 
  text appears. The default value is 8.
                      </li><li>
                        
                        <code>id</code>
                        : Specifies the name for the movie clip instance (created by Flash Player) that contains 
  the embedded image file, SWF file, or movie clip. This approach is used to control the embedded content with 
  ActionScript.
                      </li><li>
                        
                        <code>checkPolicyFile</code>
                        : Specifies that Flash Player checks for a URL policy file
  on the server associated with the image domain. If a policy file exists, SWF files in the domains
  listed in the file can access the data of the loaded image, for example, by calling the
                        <code>BitmapData.draw()</code>
                        method with this image as the
                        <code>source</code>
                        parameter. For more information,
  see the "Flash Player Security" chapter in
                        <i>Programming ActionScript 3.0</i>
                        .
                      </li></ul>
                    
                    <p>
                      Flash displays media embedded in a text field at full size. To specify the dimensions of the media 
  you are embedding, use the
                      <code>&lt;img&gt;</code>
                      tag
                      <code>height</code>
                      and
                      <code>width</code>
                      attributes.
                    </p>
                    
                    <p>
                      In general, an image embedded in a text field appears on the line following the
                      <code>&lt;img&gt;</code>
                      tag. However, when the
                      <code>&lt;img&gt;</code>
                      tag 
  is the first character in the text field, the image appears on the first line of the text field.
                    </p>
                    
                    <p>
                      For AIR content in the application security sandbox, AIR ignores
                      <code>img</code>
                      tags in 
  HTML content in ActionScript TextField objects. This is to prevent possible phishing attacks,
                    </p>
                    
                  </td></tr><tr><td>Italic tag</td><td>
                    The
                    <code>&lt;i&gt;</code>
                    tag displays the tagged text in italics. An italic typeface must be available 
  for the font used.
                  </td></tr><tr><td>List item tag</td><td>
                    The
                    <code>&lt;li&gt;</code>
                    tag places a bullet in front of the text that it encloses.
                    <b>Note:</b>
                    Because Flash Player and AIR do not recognize ordered and unordered list tags (
                    <code>&lt;ol&gt;</code>
                    and
                    <code>&lt;ul&gt;</code>
                    , they do not modify how your list is rendered. All lists are unordered and all 
  list items use bullets.
                  </td></tr><tr><td>Paragraph tag</td><td>
                    The
                    <code>&lt;p&gt;</code>
                    tag creates a new paragraph. The text field must be set to be a multiline 
  text field to use this tag. 
  
  The
                    <code>&lt;p&gt;</code>
                    tag supports the following attributes:
                    <ul><li>
                        align: Specifies alignment of text within the paragraph; valid values are
                        <code>left</code>
                        ,
                        <code>right</code>
                        ,
                        <code>justify</code>
                        , and
                        <code>center</code>
                        .
                      </li><li>class: Specifies a CSS style class defined by a flash.text.StyleSheet object.</li></ul>
                    
                  </td></tr><tr><td>Span tag</td><td>
                    The
                    <code>&lt;span&gt;</code>
                    tag is available only for use with CSS text styles. It supports the 
  following attribute:
                    <ul><li>class: Specifies a CSS style class defined by a flash.text.StyleSheet object.</li></ul>
                    
                  </td></tr><tr><td>Text format tag</td><td>
                    
                    <p>
                      The
                      <code>&lt;textformat&gt;</code>
                      tag lets you use a subset of paragraph formatting 
  properties of the TextFormat class within text fields, including line leading, indentation, 
  margins, and tab stops. You can combine
                      <code>&lt;textformat&gt;</code>
                      tags with the 
  built-in HTML tags.
                    </p>
                    
                    <p>
                      The
                      <code>&lt;textformat&gt;</code>
                      tag has the following attributes:
                    </p>
                    
                    <ul><li>
                        
                        <code>blockindent</code>
                        : Specifies the block indentation in points; corresponds to
                        <code>TextFormat.blockIndent</code>
                        .
                      </li><li>
                        
                        <code>indent</code>
                        : Specifies the indentation from the left margin to the first character 
  in the paragraph; corresponds to
                        <code>TextFormat.indent</code>
                        . Both positive and negative 
  numbers are acceptable.
                      </li><li>
                        
                        <code>leading</code>
                        : Specifies the amount of leading (vertical space) between lines; 
  corresponds to
                        <code>TextFormat.leading</code>
                        . Both positive and negative numbers are acceptable.
                      </li><li>
                        
                        <code>leftmargin</code>
                        : Specifies the left margin of the paragraph, in points; corresponds 
  to
                        <code>TextFormat.leftMargin</code>
                        .
                      </li><li>
                        
                        <code>rightmargin</code>
                        : Specifies the right margin of the paragraph, in points; corresponds 
  to
                        <code>TextFormat.rightMargin</code>
                        .
                      </li><li>
                        
                        <code>tabstops</code>
                        : Specifies custom tab stops as an array of non-negative integers; 
  corresponds to
                        <code>TextFormat.tabStops</code>
                        .
                      </li></ul>
                    
                  </td></tr><tr><td>Underline tag</td><td>
                    The
                    <code>&lt;u&gt;</code>
                    tag underlines the tagged text.
                  </td></tr></table>
          
          <p>Flash Player and AIR support the following HTML entities:</p>
          
          <table class="innertable" ><tr><th>Entity</th><th>Description</th></tr><tr><td>&lt;</td><td>&lt; (less than)</td></tr><tr><td>&gt;</td><td>> (greater than)</td></tr><tr><td>&amp;</td><td>& (ampersand)</td></tr><tr><td>&quot;</td><td>" (double quotes)</td></tr><tr><td>&apos;</td><td>' (apostrophe, single quote)</td></tr></table>
          
          <p>Flash Player and AIR also support explicit character codes, such as 
   &amp;#38; (ASCII ampersand) and &amp;#x20AC; (Unicode € symbol).</p>
          
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get htmlText():<a href="../../String.html">String</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set htmlText(value:<a href="../../String.html">String</a>):<a href="../../specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#text" target="">flash.text.TextField.text</a><br/><a href="StyleSheet.html" target="">flash.text.StyleSheet</a><br/><a href="../../flash/events/TextEvent.html" target="">flash.events.TextEvent</a></div><br/><span class="label"> Example </span><br/><div class="detailBody">
          The following example creates a TextField called
          <code>tf1</code>
          , and assigns an
 HTML-formatted String to its
          <code>text</code>
          property. When its
          <code>htmlText</code>
          property
 is traced, the output is the HTML-formatted String, with additional tags (such as &lt;P> and
 &lt;FONT>) automatically added by Flash Player. When the value of the
          <code>text</code>
          property is traced, the unformatted string without HTML tags is displayed.
          <p>
            By way of comparison, the same steps are performed on another TextField object named
            <code>tf2</code>
            , with the addition that a StyleSheet object is assigned to
            <code>tf2</code>
            's
            <code>styleSheet</code>
            property before its
            <code>htmlText</code>
            property is set. In that case,
 when the
            <code>htmlText</code>
            property is traced, it only includes the exact HTML text that was
 originally assigned to the
            <code>htmlText</code>
            property, showing that no additional tags were
 added by Flash Player.
          </p>
          
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.text.StyleSheet;
    import flash.text.TextField;

    public class TextField_text extends Sprite {
        public function TextField_text() {
            var tf1:TextField = createCustomTextField(10, 10, 400, 22);
            tf1.htmlText = "&lt;b&gt;Lorem ipsum dolor sit amet.&lt;/b&gt;";

            // htmlText: &lt;P ALIGN="LEFT"&gt;&lt;FONT FACE="Times New Roman" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"&gt;&lt;b&gt;Lorem ipsum dolor sit amet.&lt;/b&gt;&lt;/FONT&gt;&lt;/P&gt;
            trace("htmlText: " + tf1.htmlText);
            // text: Lorem ipsum dolor sit amet.
            trace("text: " + tf1.text);
            
            var tf2:TextField = createCustomTextField(10, 50, 400, 22);
            tf2.styleSheet = new StyleSheet();
            tf2.htmlText = "&lt;b&gt;Lorem ipsum dolor sit amet.&lt;/b&gt;";
            // htmlText: &lt;b&gt;Lorem ipsum dolor sit amet.&lt;/b&gt;
            trace("htmlText: " + tf2.htmlText);
            // text: Lorem ipsum dolor sit amet.
            trace("text: " + tf2.text);
        }

        private function createCustomTextField(x:Number, y:Number, width:Number, height:Number):TextField {
            var result:TextField = new TextField();
            result.x = x;
            result.y = y;
            result.width = width;
            result.height = height;
            addChild(result);
            return result;
        }
    }
}</pre></div>
        </div></div><a name="propertyDetail"></a><a name="length"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">length</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>length:<a href="../../int.html">int</a></code>&nbsp;&nbsp;[read-only] <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>
          The number of characters in a text field. A character such as tab (
          <code>\t</code>
          ) counts as one
  character.
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get length():<a href="../../int.html">int</a></code><br/></div><a name="propertyDetail"></a><a name="maxChars"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">maxChars</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>maxChars:<a href="../../int.html">int</a></code>&nbsp;&nbsp;[read-write] <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>
          The maximum number of characters that the text field can contain, as entered by a user.
  A script can insert more text than
          <code>maxChars</code>
          allows; the
          <code>maxChars</code>
          property
  indicates only how much text a user can enter. If the value of this property is
          <code>0</code>
          ,
  a user can enter an unlimited amount of text.
        </p><p> The default value is <code>0.</code></p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get maxChars():<a href="../../int.html">int</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set maxChars(value:<a href="../../int.html">int</a>):<a href="../../specialTypes.html#void">void</a></code><br/></div><a name="propertyDetail"></a><a name="maxScrollH"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">maxScrollH</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>maxScrollH:<a href="../../int.html">int</a></code>&nbsp;&nbsp;[read-only] <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>
          The maximum value of
          <code>scrollH</code>
          .
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get maxScrollH():<a href="../../int.html">int</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#scrollH" target="">flash.text.TextField.scrollH</a></div></div><a name="propertyDetail"></a><a name="maxScrollV"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">maxScrollV</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>maxScrollV:<a href="../../int.html">int</a></code>&nbsp;&nbsp;[read-only] <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>
          The maximum value of
          <code>scrollV</code>
          .
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get maxScrollV():<a href="../../int.html">int</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#scrollV" target="">flash.text.TextField.scrollV</a></div></div><a name="propertyDetail"></a><a name="mouseWheelEnabled"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">mouseWheelEnabled</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>mouseWheelEnabled:<a href="../../Boolean.html">Boolean</a></code>&nbsp;&nbsp;[read-write] <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>
          A Boolean value that indicates whether Flash Player automatically scrolls multiline
  text fields when the user clicks a text field and rolls the mouse wheel.
  By default, this value is
          <code>true</code>
          . This property is useful if you want to prevent
  mouse wheel scrolling of text fields, or implement your own text field scrolling.
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get mouseWheelEnabled():<a href="../../Boolean.html">Boolean</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set mouseWheelEnabled(value:<a href="../../Boolean.html">Boolean</a>):<a href="../../specialTypes.html#void">void</a></code><br/></div><a name="propertyDetail"></a><a name="multiline"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">multiline</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>multiline:<a href="../../Boolean.html">Boolean</a></code>&nbsp;&nbsp;[read-write] <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>
          Indicates whether field is a multiline text field. If the value is
          <code>true</code>
          ,
  the text field is multiline; if the value is
          <code>false</code>
          , the text field is a single-line
  text field. In a field of type
          <code>TextFieldType.INPUT</code>
          , the
          <code>multiline</code>
          value
  determines whether the
          <code>Enter</code>
          key creates a new line (a value of
          <code>false</code>
          ,
  and the
          <code>Enter</code>
          key is ignored).
  If you paste text into a
          <code>TextField</code>
          with a
          <code>multiline</code>
          value of
          <code>false</code>
          ,
  newlines are stripped out of the text.
        </p><p> The default value is <code>false.</code></p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get multiline():<a href="../../Boolean.html">Boolean</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set multiline(value:<a href="../../Boolean.html">Boolean</a>):<a href="../../specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#numLines" target="">numLines</a></div></div><a name="propertyDetail"></a><a name="numLines"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">numLines</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>numLines:<a href="../../int.html">int</a></code>&nbsp;&nbsp;[read-only] <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>
          Defines the number of text lines in a multiline text field. 
  If
          <code>wordWrap</code>
          property is set to
          <code>true</code>
          ,
  the number of lines increases when text wraps.
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get numLines():<a href="../../int.html">int</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#multiline" target="">multiline</a><br/><a href="TextField.html#wordWrap" target="">wordWrap</a></div></div><a name="propertyDetail"></a><a name="restrict"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">restrict</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>restrict:<a href="../../String.html">String</a></code>&nbsp;&nbsp;[read-write] <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>
          Indicates the set of characters that a user can enter into the text field. If the value of the
          <code>restrict</code>
          property is
          <code>null</code>
          , you can enter any character. If the value of
  the
          <code>restrict</code>
          property is an empty string, you cannot enter any character. If the value
  of the
          <code>restrict</code>
          property is a string of characters, you can enter only characters in
  the string into the text field. The string is scanned from left to right. You can specify a range by
  using the hyphen (-) character. Only user interaction is restricted; a script can put any text into the 
  text field.
          <span src="flashonly">This property does not synchronize with the Embed font options
  in the Property inspector.</span>
          
          <p>If the string begins with a caret (^) character, all characters are initially accepted and 
  succeeding characters in the string are excluded from the set of accepted characters. If the string does 
  not begin with a caret (^) character, no characters are initially accepted and succeeding characters in the 
  string are included in the set of accepted characters.</p>
          
          <p>The following example allows only uppercase characters, spaces, and numbers to be entered into
  a text field:</p>
          
          <pre>my_txt.restrict = "A-Z 0-9";</pre>
          
          <p>The following example includes all characters, but excludes lowercase letters:</p>
          
          <pre>my_txt.restrict = "^a-z";</pre>
          
          <p>You can use a backslash to enter a ^ or - verbatim. The accepted backslash sequences are \-, \^ or \\.
  The backslash must be an actual character in the string, so when specified in ActionScript, a double backslash
  must be used. For example, the following code includes only the dash (-) and caret (^):</p>
          
          <pre>my_txt.restrict = "\\-\\^";</pre>
          
          <p>The ^ can be used anywhere in the string to toggle between including characters and excluding characters.
  The following code includes only uppercase letters, but excludes the uppercase letter Q:</p>
          
          <pre>my_txt.restrict = "A-Z^Q";</pre>
          
          <p>
            You can use the
            <code>u</code>
            escape sequence to construct
            <code>restrict</code>
            strings.
  The following code includes only the characters from ASCII 32 (space) to ASCII 126 (tilde).
          </p>
          
          <pre>my_txt.restrict = "\u0020-\u007E";</pre>
          
        </p><p> The default value is <code>null.</code></p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get restrict():<a href="../../String.html">String</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set restrict(value:<a href="../../String.html">String</a>):<a href="../../specialTypes.html#void">void</a></code><br/></div><a name="propertyDetail"></a><a name="scrollH"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">scrollH</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>scrollH:<a href="../../int.html">int</a></code>&nbsp;&nbsp;[read-write] <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>
          The current horizontal scrolling position. If the
          <code>scrollH</code>
          property is 0, the text
  is not horizontally scrolled. This property value is an integer that represents the horizontal
  position in pixels.
          <p>The units of horizontal scrolling are pixels, whereas the units of vertical scrolling are lines.
  Horizontal scrolling is measured in pixels because most fonts you typically use are proportionally
  spaced; that is, the characters can have different widths. Flash Player performs vertical scrolling by
  line because users usually want to see a complete line of text rather than a
  partial line. Even if a line uses multiple fonts, the height of the line adjusts to fit
  the largest font in use.</p>
          
          <p>
            <b>Note:</b>
            The
            <code>scrollH</code>
            property is zero-based, not 1-based like 
  the
            <code>scrollV</code>
            vertical scrolling property.
          </p>
          
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get scrollH():<a href="../../int.html">int</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set scrollH(value:<a href="../../int.html">int</a>):<a href="../../specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#maxScrollH" target="">flash.text.TextField.maxScrollH</a><br/><a href="TextField.html#scrollV" target="">flash.text.TextField.scrollV</a></div></div><a name="propertyDetail"></a><a name="scrollV"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">scrollV</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>scrollV:<a href="../../int.html">int</a></code>&nbsp;&nbsp;[read-write] <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>
          The vertical position of text in a text field. The
          <code>scrollV</code>
          property is useful for
  directing users to a specific paragraph in a long passage, or creating scrolling text fields.
          <p>The units of vertical scrolling are lines, whereas the units of horizontal scrolling are pixels.
  If the first line displayed is the first line in the text field, scrollV is set to 1 (not 0).
  Horizontal scrolling is measured in pixels because most fonts are proportionally
  spaced; that is, the characters can have different widths. Flash performs vertical scrolling by line
  because users usually want to see a complete line of text rather than a partial line.
  Even if there are multiple fonts on a line, the height of the line adjusts to fit the largest font in
  use.</p>
          
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get scrollV():<a href="../../int.html">int</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set scrollV(value:<a href="../../int.html">int</a>):<a href="../../specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#scrollH" target="">flash.text.TextField.scrollH</a><br/><a href="TextField.html#maxScrollV" target="">flash.text.TextField.maxScrollV</a></div></div><a name="propertyDetail"></a><a name="selectable"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">selectable</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>selectable:<a href="../../Boolean.html">Boolean</a></code>&nbsp;&nbsp;[read-write] <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>
          A Boolean value that indicates whether the text field is selectable. The value
          <code>true</code>
          indicates that the text is selectable. The
          <code>selectable</code>
          property controls whether
  a text field is selectable, not whether a text field is editable. A dynamic text field can
  be selectable even if it is not editable. If a dynamic text field is not selectable, the user
  cannot select its text.
          <p>
            If
            <code>selectable</code>
            is set to
            <code>false</code>
            , the text in the text field does not
  respond to selection commands from the mouse or keyboard, and the text cannot be copied with the
  Copy command. If
            <code>selectable</code>
            is set to
            <code>true</code>
            , the text in the text field
  can be selected with the mouse or keyboard, and the text can be copied with the Copy command. 
  You can select text this way even if the text field is a dynamic text field instead of an input text field.
          </p>
          
        </p><p> The default value is <code>true.</code></p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get selectable():<a href="../../Boolean.html">Boolean</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set selectable(value:<a href="../../Boolean.html">Boolean</a>):<a href="../../specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#setSelection()" target="">setSelection()</a><br/><a href="TextField.html#selectionBeginIndex" target="">selectionBeginIndex</a><br/><a href="TextField.html#selectionEndIndex" target="">selectionEndIndex</a><br/><a href="TextField.html#setSelection()" target="">setSelection()</a><br/><a href="TextField.html#caretIndex" target="">caretIndex</a></div><br/><span class="label"> Example </span><br/><div class="detailBody">
          The following example creates two dynamic text fields: one text field with the
          <code>selectable</code>
          property set to
          <code>true</code>
          , and the other text field with the
          <code>selectable</code>
          property set to
          <code>false</code>
          . 
 When you use this example, try to select the text in these fields with the mouse or the keyboard.
          <div class="listing"><pre>package
{
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFieldAutoSize;

    public class selectableExample extends Sprite
    {
        public function selectableExample()
        {
    var tf1:TextField = createCustomTextField(10, 10);
    tf1.text="This text can be selected";
    tf1.selectable=true;

    var tf2:TextField = createCustomTextField(10, 30);
    tf2.text="This text cannot be selected";
    tf2.selectable=false;
        }

        private function createCustomTextField(x:Number, y:Number):TextField 
       {
            var result:TextField = new TextField();
            result.x = x;
            result.y = y;
            result.autoSize=TextFieldAutoSize.LEFT;
            addChild(result);
            return result;
        }
    }
}</pre></div>
        </div></div><a name="propertyDetail"></a><a name="selectionBeginIndex"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">selectionBeginIndex</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>selectionBeginIndex:<a href="../../int.html">int</a></code>&nbsp;&nbsp;[read-only] <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>
          The zero-based character index value of the first character in the current selection.
  For example, the first character is 0, the second character is 1, and so on. If no
  text is selected, this property is the value of
          <code>caretIndex</code>
          .
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get selectionBeginIndex():<a href="../../int.html">int</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#selectable" target="">selectable</a><br/><a href="TextField.html#selectionEndIndex" target="">selectionEndIndex</a><br/><a href="TextField.html#setSelection()" target="">setSelection()</a><br/><a href="TextField.html#caretIndex" target="">caretIndex</a></div><br/><span class="label"> Example </span><br/><div class="detailBody">
          In this example, a TextField instance is created and populated with text.
 An event listener is assigned so that when the user clicks on the TextField, the
          <code>printCursorPosition</code>
          method is called. In that case, the values of the
          <code>caretIndex</code>
          ,
          <code>selectionBeginIndex</code>
          , and
          <code>selectionEndIndex</code>
          properties are output.
          <p>
            Run this example and try clicking in the TextField to select text. Then click in the field without
 selecting text. When you click in the text without making a selection, the
            <code>caretIndex</code>
            property indicates where the insertion point occurs, and the
            <code>selectionBeginIndex</code>
            and
            <code>selectionEndIndex</code>
            properties equal the
            <code>caretIndex</code>
            property value.
          </p>
          
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.events.MouseEvent;
    import flash.text.TextField;
    import flash.text.TextFieldType;

    public class TextField_caretIndex extends Sprite {
        public function TextField_caretIndex() {
            var tf:TextField = createCustomTextField(10, 10, 100, 100);
            tf.wordWrap = true;
            tf.type = TextFieldType.INPUT;
            tf.text = "Click in this text field. Compare the difference between clicking without selecting versus clicking and selecting text.";
            tf.addEventListener(MouseEvent.CLICK, printCursorPosition);
        }

        private function printCursorPosition(event:MouseEvent):void {
            var tf:TextField = TextField(event.target);
            trace("caretIndex:", tf.caretIndex);
            trace("selectionBeginIndex:", tf.selectionBeginIndex);
            trace("selectionEndIndex:", tf.selectionEndIndex);
        }

        private function createCustomTextField(x:Number, y:Number, width:Number, height:Number):TextField {
            var result:TextField = new TextField();
            result.x = x;
            result.y = y;
            result.width = width;
            result.height = height;
            addChild(result);
            return result;
        }
    }
}</pre></div>
        </div></div><a name="propertyDetail"></a><a name="selectionEndIndex"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">selectionEndIndex</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>selectionEndIndex:<a href="../../int.html">int</a></code>&nbsp;&nbsp;[read-only] <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>
          The zero-based character index value of the last character in the current selection.
     For example, the first character is 0, the second character is 1, and so on. If no
     text is selected, this property is the value of
          <code>caretIndex</code>
          .
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get selectionEndIndex():<a href="../../int.html">int</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#selectable" target="">selectable</a><br/><a href="TextField.html#selectionBeginIndex" target="">selectionBeginIndex</a><br/><a href="TextField.html#setSelection()" target="">setSelection()</a><br/><a href="TextField.html#caretIndex" target="">caretIndex</a></div><br/><span class="label"> Example </span><br/><div class="detailBody">
          In this example, a TextField instance is created and populated with text.
 An event listener is assigned so that when the user clicks on the TextField, the
          <code>printCursorPosition</code>
          method is called. In that case, the values of the
          <code>caretIndex</code>
          ,
          <code>selectionBeginIndex</code>
          , and
          <code>selectionEndIndex</code>
          properties are output.
          <p>
            Run this example and try clicking in the TextField to select text. Then click in the field without
 selecting text. When you click in the text without making a selection, the
            <code>caretIndex</code>
            property indicates where the insertion point occurs, and the
            <code>selectionBeginIndex</code>
            and
            <code>selectionEndIndex</code>
            properties equal the
            <code>caretIndex</code>
            property value.
          </p>
          
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.events.MouseEvent;
    import flash.text.TextField;
    import flash.text.TextFieldType;

    public class TextField_caretIndex extends Sprite {
        public function TextField_caretIndex() {
            var tf:TextField = createCustomTextField(10, 10, 100, 100);
            tf.wordWrap = true;
            tf.type = TextFieldType.INPUT;
            tf.text = "Click in this text field. Compare the difference between clicking without selecting versus clicking and selecting text.";
            tf.addEventListener(MouseEvent.CLICK, printCursorPosition);
        }

        private function printCursorPosition(event:MouseEvent):void {
            var tf:TextField = TextField(event.target);
            trace("caretIndex:", tf.caretIndex);
            trace("selectionBeginIndex:", tf.selectionBeginIndex);
            trace("selectionEndIndex:", tf.selectionEndIndex);
        }

        private function createCustomTextField(x:Number, y:Number, width:Number, height:Number):TextField {
            var result:TextField = new TextField();
            result.x = x;
            result.y = y;
            result.width = width;
            result.height = height;
            addChild(result);
            return result;
        }
    }
}</pre></div>
        </div></div><a name="propertyDetail"></a><a name="sharpness"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">sharpness</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>sharpness:<a href="../../Number.html">Number</a></code>&nbsp;&nbsp;[read-write] <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>
          The sharpness of the glyph edges in this text field. This property applies
  only if the
          <code>flash.text.AntiAliasType</code>
          property of the text field is set to
          <code>flash.text.AntiAliasType.ADVANCED</code>
          . The range for
          <code>sharpness</code>
          is a number from -400 to 400. If you attempt to set
          <code>sharpness</code>
          to a value outside that range, Flash sets the property to
  the nearest value in the range (either -400 or 400).
        </p><p> The default value is <code>0.</code></p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get sharpness():<a href="../../Number.html">Number</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set sharpness(value:<a href="../../Number.html">Number</a>):<a href="../../specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#antiAliasType" target="">flash.text.TextField.antiAliasType</a><br/><a href="AntiAliasType.html" target="">flash.text.AntiAliasType</a></div><br/><span class="label"> Example </span><br/><div class="detailBody">
          The following example shows the effect of changing the
          <code>sharpness</code>
          property for a TextField object. You need to embed the font, and set the
          <code>antiAliasType</code>
          property to
          <code>ADVANCED</code>
          .
          <div class="listing"><pre>package
{
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFieldAutoSize;
    import flash.text.AntiAliasType;
    import flash.text.GridFitType;
    import flash.text.TextFormat;

    public class sharpnessExample extends Sprite
    {
        public function sharpnessExample()
        {
    var format1:TextFormat = new TextFormat();
    format1.font="Arial";
    format1.size=24;
    var lTxt:String = "The quick brown fox";

    var tf1:TextField=createCustomTextField(0,lTxt,format1,-400);
    var tf2:TextField=createCustomTextField(30,lTxt,format1,0);
    var tf3:TextField=createCustomTextField(60,lTxt,format1,400);
        }

        private function createCustomTextField(y:Number,fldTxt:String,format:TextFormat,fldSharpness:Number):TextField 
       {
            var result:TextField = new TextField();
            result.y=y;
            result.text=fldTxt;
            result.embedFonts=true;
            result.autoSize=TextFieldAutoSize.LEFT;
            result.antiAliasType=AntiAliasType.ADVANCED;
            result.gridFitType=GridFitType.PIXEL;
            result.sharpness=fldSharpness;
            result..setTextFormat(format);
            addChild(result);
            return result;
        }
    }
}</pre></div>
        </div></div><a name="propertyDetail"></a><a name="styleSheet"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">styleSheet</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>styleSheet:<a href="../../flash/text/StyleSheet.html">StyleSheet</a></code>&nbsp;&nbsp;[read-write] <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>
          Attaches a style sheet to the text field. For information on creating style sheets, see the StyleSheet class
  and
          <i>Programming ActionScript 3.0</i>
          .
          <p>
            You can change the style sheet associated with a text field at any time. If you change
  the style sheet in use, the text field is redrawn with the new style sheet. 
  You can set the style sheet to
            <code>null</code>
            or
            <code>undefined</code>
            to remove the style sheet. If the style sheet in use is removed, the text field is redrawn without a style sheet.
          </p>
          
          <p>
            <b>Note:</b>
            If the style sheet is removed, the contents of both
            <code>TextField.text</code>
            and
            <code>TextField.htmlText</code>
            change to incorporate the formatting previously applied by the style sheet. To preserve
     the original
            <code>TextField.htmlText</code>
            contents without the formatting, save the value in a variable before
     removing the style sheet.
          </p>
          
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get styleSheet():<a href="../../flash/text/StyleSheet.html">StyleSheet</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set styleSheet(value:<a href="../../flash/text/StyleSheet.html">StyleSheet</a>):<a href="../../specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="StyleSheet.html" target="">flash.text.StyleSheet</a></div><br/><span class="label"> Example </span><br/><div class="detailBody">
          The following example defines a simple StyleSheet object 
 and assigns it to a text field with HTML content. Set the
          <code>stylesheet</code>
          property before setting the content.
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.StyleSheet;

    public class TextStylesheetExample extends Sprite {
        var myLabel:TextField = new TextField();
        var labelText:String = "Hello world.";
        var newStyle:StyleSheet = new StyleSheet();

        public function TextStylesheetExample()
       {
            var styleObj:Object = new Object();
            styleObj.fontWeight = "bold";
            styleObj.color = "#660066";
            newStyle.setStyle(".defStyle", styleObj);

            myLabel.styleSheet=newStyle;
            myLabel.htmlText=labelText;
            addChild(myLabel);
        }
    }
}</pre></div>
        </div></div><a name="propertyDetail"></a><a name="text"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">text</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>text:<a href="../../String.html">String</a></code>&nbsp;&nbsp;[read-write] <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>
          A string that is the current text in the text field. Lines are separated by the carriage
  return character (
          <code>'\r'</code>
          , ASCII 13). This property contains unformatted text in the text
  field, without HTML tags.
          <p>
            To get the text in HTML form, use the
            <code>htmlText</code>
            property.
          </p>
          
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get text():<a href="../../String.html">String</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set text(value:<a href="../../String.html">String</a>):<a href="../../specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#htmlText" target="">flash.text.TextField.htmlText</a></div><br/><span class="label"> Example </span><br/><div class="detailBody">
          The following example creates a TextField called
          <code>tf1</code>
          , and assigns an
 HTML-formatted String to its
          <code>text</code>
          property. When its
          <code>htmlText</code>
          property
 is traced, the output is the HTML-formatted String, with additional tags (such as &lt;P> and
 &lt;FONT>) automatically added by Flash Player. When the value of the
          <code>text</code>
          property is traced, the unformatted string without HTML tags is displayed.
          <p>
            By way of comparison, the same steps are performed on another TextField object named
            <code>tf2</code>
            , with the addition that a StyleSheet object is assigned to
            <code>tf2</code>
            's
            <code>styleSheet</code>
            property before its
            <code>htmlText</code>
            property is set. In that case,
 when the
            <code>htmlText</code>
            property is traced, it only includes the exact HTML text that was
 originally assigned to the
            <code>htmlText</code>
            property, showing that no additional tags were
 added by Flash Player.
          </p>
          
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.text.StyleSheet;
    import flash.text.TextField;

    public class TextField_text extends Sprite {
        public function TextField_text() {
            var tf1:TextField = createCustomTextField(10, 10, 400, 22);
            tf1.htmlText = "&lt;b&gt;Lorem ipsum dolor sit amet.&lt;/b&gt;";

            // htmlText: &lt;P ALIGN="LEFT"&gt;&lt;FONT FACE="Times New Roman" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"&gt;&lt;b&gt;Lorem ipsum dolor sit amet.&lt;/b&gt;&lt;/FONT&gt;&lt;/P&gt;
            trace("htmlText: " + tf1.htmlText);
            // text: Lorem ipsum dolor sit amet.
            trace("text: " + tf1.text);
            
            var tf2:TextField = createCustomTextField(10, 50, 400, 22);
            tf2.styleSheet = new StyleSheet();
            tf2.htmlText = "&lt;b&gt;Lorem ipsum dolor sit amet.&lt;/b&gt;";
            // htmlText: &lt;b&gt;Lorem ipsum dolor sit amet.&lt;/b&gt;
            trace("htmlText: " + tf2.htmlText);
            // text: Lorem ipsum dolor sit amet.
            trace("text: " + tf2.text);
        }

        private function createCustomTextField(x:Number, y:Number, width:Number, height:Number):TextField {
            var result:TextField = new TextField();
            result.x = x;
            result.y = y;
            result.width = width;
            result.height = height;
            addChild(result);
            return result;
        }
    }
}</pre></div>
        </div></div><a name="propertyDetail"></a><a name="textColor"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">textColor</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>textColor:<a href="../../uint.html">uint</a></code>&nbsp;&nbsp;[read-write] <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>
          The color of the text in a text field, in hexadecimal format.
  The hexadecimal color system uses six digits to represent
  color values. Each digit has 16 possible values or characters. The characters range from
  0-9 and then A-F. For example, black is
          <code>0x000000</code>
          ; white is
          <code>0xFFFFFF</code>
          .
        </p><p> The default value is <code>0 (0x000000).</code></p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get textColor():<a href="../../uint.html">uint</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set textColor(value:<a href="../../uint.html">uint</a>):<a href="../../specialTypes.html#void">void</a></code><br/><br/><span class="label"> Example </span><br/><div class="detailBody">
          The following ActionScript creates a TextField object and changes its
          <code>textColor</code>
          property to red (
          <code>0xFF0000</code>
          ).
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.text.TextField;

    public class TextField_textColor extends Sprite {
        public function TextField_textColor() {
            var tf:TextField = createCustomTextField(10, 10, 100, 300);
            tf.text = "This will be red text";
            tf.textColor = 0xFF0000;            
        }

        private function createCustomTextField(x:Number, y:Number, width:Number, height:Number):TextField {
            var result:TextField = new TextField();
            result.x = x;
            result.y = y;
            result.width = width;
            result.height = height;
            addChild(result);
            return result;
        }
    }
}</pre></div>
        </div></div><a name="propertyDetail"></a><a name="textHeight"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">textHeight</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>textHeight:<a href="../../Number.html">Number</a></code>&nbsp;&nbsp;[read-only] <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>The height of the text in pixels.</p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get textHeight():<a href="../../Number.html">Number</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#textWidth" target="">flash.text.TextField.textWidth</a></div><br/><span class="label"> Example </span><br/><div class="detailBody">
          The following example creates a TextField object and assigns text to it.
 The
          <code>trace</code>
          statements display the values of the
          <code>textWidth</code>
          and
          <code>textHeight</code>
          properties. For comparison, the
          <code>width</code>
          and
          <code>height</code>
          properties are also displayed. (Note that the values you see for
          <code>textHeight</code>
          and
          <code>textWidth</code>
          might
 vary depending on the font that is used on your machine).
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.text.TextField;

    public class TextField_textHeight extends Sprite {
        public function TextField_textHeight() {
            var tf:TextField = createCustomTextField(10, 10, 100, 150);
            tf.text = "Sample text";
            
            trace("textWidth: " + tf.textWidth); // textWidth: 55.75
            trace("textHeight: " + tf.textHeight); // textHeight: 13.450000000000001
            trace("width: " + tf.width); // width: 100
            trace("height: " + tf.height); // height: 150
        }

        private function createCustomTextField(x:Number, y:Number, width:Number, height:Number):TextField {
            var result:TextField = new TextField();
            result.x = x;
            result.y = y;
            result.width = width;
            result.height = height;
            result.border = true;
            result.background = true;
            addChild(result);
            return result;
        }
    }
}</pre></div>
        </div></div><a name="propertyDetail"></a><a name="textWidth"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">textWidth</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>textWidth:<a href="../../Number.html">Number</a></code>&nbsp;&nbsp;[read-only] <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>The width of the text in pixels.</p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get textWidth():<a href="../../Number.html">Number</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#textHeight" target="">flash.text.TextField.textHeight</a></div><br/><span class="label"> Example </span><br/><div class="detailBody">
          The following example creates a TextField object and assigns text to it.
 The
          <code>trace</code>
          statements display the values of the
          <code>textWidth</code>
          and
          <code>textHeight</code>
          properties. For comparison, the
          <code>width</code>
          and
          <code>height</code>
          properties are also displayed. (Note that the values you see for
          <code>textHeight</code>
          and
          <code>textWidth</code>
          might
 vary depending on the font that is used on your machine).
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.text.TextField;

    public class TextField_textHeight extends Sprite {
        public function TextField_textHeight() {
            var tf:TextField = createCustomTextField(10, 10, 100, 150);
            tf.text = "Sample text";
            
            trace("textWidth: " + tf.textWidth); // textWidth: 55.75
            trace("textHeight: " + tf.textHeight); // textHeight: 13.450000000000001
            trace("width: " + tf.width); // width: 100
            trace("height: " + tf.height); // height: 150
        }

        private function createCustomTextField(x:Number, y:Number, width:Number, height:Number):TextField {
            var result:TextField = new TextField();
            result.x = x;
            result.y = y;
            result.width = width;
            result.height = height;
            result.border = true;
            result.background = true;
            addChild(result);
            return result;
        }
    }
}</pre></div>
        </div></div><a name="propertyDetail"></a><a name="thickness"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">thickness</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>thickness:<a href="../../Number.html">Number</a></code>&nbsp;&nbsp;[read-write] <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>
          The thickness of the glyph edges in this text field. This property applies only
  when
          <code>flash.text.AntiAliasType</code>
          is set to
          <code>flash.text.AntiAliasType.ADVANCED</code>
          .
          <p>
            The range for
            <code>thickness</code>
            is a number from -200 to 200. If you attempt to
  set
            <code>thickness</code>
            to a value outside that range, the property is set to the
  nearest value in the range (either -200 or 200).
          </p>
          
        </p><p> The default value is <code>0.</code></p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get thickness():<a href="../../Number.html">Number</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set thickness(value:<a href="../../Number.html">Number</a>):<a href="../../specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#antiAliasType" target="">flash.text.TextField.antiAliasType</a><br/><a href="AntiAliasType.html" target="">flash.text.AntiAliasType</a></div><br/><span class="label"> Example </span><br/><div class="detailBody">
          The following example shows the effect of changing the
          <code>thickness</code>
          property for a TextField object. You need to embed the font, and set the
          <code>antiAliasType</code>
          property to
          <code>ADVANCED</code>
          .
          <div class="listing"><pre>package
{
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFieldAutoSize;
    import flash.text.AntiAliasType;
    import flash.text.GridFitType;
    import flash.text.TextFormat;

    public class thicknessExample extends Sprite
    {
        public function thicknessExample()
        {
    var format1:TextFormat = new TextFormat();
    format1.font="Arial";
    format1.size=24;
    var lTxt:String = "The quick brown fox";

    var tf1:TextField=createCustomTextField(0,lTxt,format1,-200);
    var tf2:TextField=createCustomTextField(30,lTxt,format1,0);
    var tf3:TextField=createCustomTextField(60,lTxt,format1,200);
        }

        private function createCustomTextField(y:Number,fldTxt:String,format:TextFormat,fldThickness:Number):TextField 
       {
            var result:TextField = new TextField();
            result.y=y;
            result.text=fldTxt;
            result.embedFonts=true;
            result.autoSize=TextFieldAutoSize.LEFT;
            result.antiAliasType=AntiAliasType.ADVANCED;
            result.gridFitType=GridFitType.PIXEL;
            result.thickness=fldThickness;
            result.setTextFormat(format);
            addChild(result);
            return result;
        }
    }
}</pre></div>
        </div></div><a name="propertyDetail"></a><a name="type"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">type</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>type:<a href="../../String.html">String</a></code>&nbsp;&nbsp;[read-write] <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>
          The type of the text field.
  Either one of the following TextFieldType constants:
          <code>TextFieldType.DYNAMIC</code>
          ,
  which specifies a dynamic text field, which a user cannot edit, or
          <code>TextFieldType.INPUT</code>
          ,
  which specifies an input text field, which a user can edit.
        </p><p> The default value is <code>dynamic.</code></p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get type():<a href="../../String.html">String</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set type(value:<a href="../../String.html">String</a>):<a href="../../specialTypes.html#void">void</a></code><br/><br/><span class="label"> Throws </span><br/><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../ArgumentError.html">ArgumentError</a> </code> &mdash; 
              The
              <code>type</code>
              specified is not a member of flash.text.TextFieldType.
            </td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextFieldType.html" target="">flash.text.TextFieldType</a></div><br/><span class="label"> Example </span><br/><div class="detailBody">
          The following example creates two text fields:
          <code>tfDynamic</code>
          and
          <code>tfInput</code>
          . Text is entered into both text fields. However,
          <code>tfDynamic</code>
          has its
          <code>type</code>
          property set to
          <code>TextFieldType.DYNAMIC</code>
          , and
          <code>tfInput</code>
          has its
          <code>type</code>
          property set to
          <code>TextFieldType.INPUT</code>
          , so the user can
 modify the text in
          <code>tfInput</code>
          but can only view the text in
          <code>tfDynamic</code>
          .
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFieldType;

    public class TextField_type extends Sprite {
        public function TextField_type() {
            var tfDynamic:TextField = createCustomTextField(10, 10, 100, 20);
            tfDynamic.type = TextFieldType.DYNAMIC;
            tfDynamic.text = "hello";

            var tfInput:TextField = createCustomTextField(10, 45, 100, 20);
            tfInput.type = TextFieldType.INPUT;
            tfInput.text = "world";
        }

        private function createCustomTextField(x:Number, y:Number, width:Number, height:Number):TextField {
            var result:TextField = new TextField();
            result.x = x;
            result.y = y;
            result.width = width;
            result.height = height;
            result.background = true;
            result.border = true;
            addChild(result);
            return result;
        }
    }
}</pre></div>
        </div></div><a name="propertyDetail"></a><a name="useRichTextClipboard"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">useRichTextClipboard</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>useRichTextClipboard:<a href="../../Boolean.html">Boolean</a></code>&nbsp;&nbsp;[read-write] <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 whether to copy and paste the text formatting along with the text. When set to
          <code>true</code>
          ,
     Flash Player copies and pastes formatting (such as alignment, bold, and italics) when you copy and paste between text fields. Both the origin and destination text fields for the copy and paste procedure must have
          <code>useRichTextClipboard</code>
          set to
          <code>true</code>
          . The default value
  is
          <code>false</code>
          .
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get useRichTextClipboard():<a href="../../Boolean.html">Boolean</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set useRichTextClipboard(value:<a href="../../Boolean.html">Boolean</a>):<a href="../../specialTypes.html#void">void</a></code><br/><br/><span class="label"> Example </span><br/><div class="detailBody">
          This example creates an input text field (
          <code>tf1</code>
          ) and two dynamic 
 text fields (
          <code>tf2</code>
          and
          <code>tf3</code>
          ). 
 The code assigns each dynamic text field a TextFormat object (Courier Bold font).
 The
          <code>tf2</code>
          text field has
          <code>useRichTextClipboard</code>
          property set to
          <code>false</code>
          . The
          <code>tf3</code>
          text field has the
          <code>useRichTextClipboard</code>
          property set to
          <code>true</code>
          .
 When you copy the text from the
          <code>tf2</code>
          text field
 and paste it into the
          <code>tf1</code>
          text field, the pasted text does not include 
 the formatting. When you copy the text from the
          <code>tf3</code>
          text field (which has
          <code>useRichTextClipboard</code>
          set to
          <code>true</code>
          ) and paste it into the
          <code>tf1</code>
          text field, the pasted text includes the formatting.
          <div class="listing"><pre>package
{
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFieldType;
    import flash.text.TextFormat;

    public class useRichTextClipboard extends Sprite
    {
        public function useRichTextClipboard()
        {
    var format1:TextFormat = new TextFormat();
    format1.font="Courier";
    format1.bold=true;

    var tf1:TextField = createCustomTextField(10, 10, 200, 20);
    tf1.type=TextFieldType.INPUT;
    tf1.useRichTextClipboard=true;

    var tf2:TextField = createCustomTextField(220, 10, 200, 20);
    tf2.text="1.Text loses format";
    tf2.setTextFormat(format1);
    tf2.useRichTextClipboard=false;

    var tf3:TextField = createCustomTextField(220, 50, 200, 20);
    tf3.text="2.Text includes format";
    tf3.setTextFormat(format1);
    tf3.useRichTextClipboard=true;
        }

        private function createCustomTextField(x:Number, y:Number, width:Number, height:Number):TextField 
       {
            var result:TextField = new TextField();
            result.x = x;
            result.y = y;
            result.width = width;
            result.height = height;
            result.background = true;
            result.border = true;
            addChild(result);
            return result;
        }
    }
}</pre></div>
        </div></div><a name="propertyDetail"></a><a name="wordWrap"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">wordWrap</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>wordWrap:<a href="../../Boolean.html">Boolean</a></code>&nbsp;&nbsp;[read-write] <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>
          A Boolean value that indicates whether the text field has word wrap. If the value of
          <code>wordWrap</code>
          is
          <code>true</code>
          , the text field has word wrap;
  if the value is
          <code>false</code>
          , the text field does not have word wrap. The default
  value is
          <code>false</code>
          .
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get wordWrap():<a href="../../Boolean.html">Boolean</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set wordWrap(value:<a href="../../Boolean.html">Boolean</a>):<a href="../../specialTypes.html#void">void</a></code><br/><br/><span class="label"> Example </span><br/><div class="detailBody">
          This example demonstrates the difference between setting the
          <code>wordWrap</code>
          property to
          <code>true</code>
          and setting it to
          <code>false</code>
          . Two TextField instances are
 created whose contents are too large for their widths. The
          <code>wordWrap</code>
          property of
 the first (named
          <code>tfWrap</code>
          ) is set to
          <code>true</code>
          ; it is set to
          <code>false</code>
          for the second (
          <code>tfNoWrap</code>
          ).
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.text.TextField;

    public class TextField_wordWrap extends Sprite {
        public function TextField_wordWrap() {
            var tfWrap:TextField = createCustomTextField(10, 10, 100, 100);
            tfWrap.wordWrap = true;
            tfWrap.text = "(wordWrap = true):\nThis is very long text that will certainly extend beyond the width of this text field";

            var tfNoWrap:TextField = createCustomTextField(10, 150, 100, 100);
            tfNoWrap.wordWrap = false;
            tfNoWrap.text = "(wordWrap = false):\nThis is very long text that will certainly extend beyond the width of this text field";
        }

        private function createCustomTextField(x:Number, y:Number, width:Number, height:Number):TextField {
            var result:TextField = new TextField();
            result.x = x;
            result.y = y;
            result.width = width;
            result.height = height;
            result.background = true;
            result.border = true;
            addChild(result);
            return result;
        }
    }
}</pre></div>
        </div></div><a name="constructorDetail"></a><div class="detailSectionHeader">Constructor Detail</div><a name="TextField()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">TextField</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">Constructor</td></tr></table><div class="detailBody"><code>public function TextField()</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>
          Creates a new TextField instance. After you create the TextField instance, call the
          <code>addChild()</code>
          or
          <code>addChildAt()</code>
          method of the parent
  DisplayObjectContainer object to add the TextField instance to the display list.
          <p>The default size for a text field is 100 x 100 pixels.</p>
          
        </p></div><a name="methodDetail"></a><div class="detailSectionHeader">Method Detail</div><a name="appendText()"></a><a name="appendText(String)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">appendText</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td></tr></table><div class="detailBody"><code> public function appendText(newText:<a href="../../String.html">String</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>
          Appends the string specified by the
          <code>newText</code>
          parameter to the end of the text 
  of the text field. This method is more efficient than an addition assignment (
          <code>+=</code>
          ) on 
     a
          <code>text</code>
          property (such as
          <code>someTextField.text += moreText</code>
          ),
  particularly for a text field that contains a significant amount of content.
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">newText</span>:<a href="../../String.html">String</a></code> &mdash; The string to append to the existing text.</td></tr></table></p><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example displays the time if it's not the weekend or the text, "It's the weekend," 
 if it is. It also counts the number of characters up to a certain position and the number of lines in the text field.
          <p>
            The
            <code>outputText</code>
            text field is set to automatically fit the text and to resize as a 
 left-justified text using
            <code>autoSize</code>
            property. The
            <code>outputText.text</code>
            property writes the first 
 line of the content and the method
            <code>appendText()</code>
            appends the rest of the content. (It is not 
 necessary to start with the
            <code>text</code>
            property. The
            <code>appendText()</code>
            method could also be 
 used to append text from the outset.) Setting the
            <code>text</code>
            property a second time will overwrite 
 the original text. Use
            <code>+=</code>
            operator to append content with the
            <code>text</code>
            property.
          </p>
          
          <p>
            The
            <code>if</code>
            statement checks if the date is Saturday (6) or Sunday (0). If it's not, the
            <code>toLocaleTimeString()</code>
            method returns the local time, which is appended to the text field's content.
          </p>
          
          <p>
            The text field's
            <code>length</code>
            property is used to read the number of characters until right 
 before the function is called, and the property
            <code>numLines</code>
            is used to count the number of lines 
 in the text field. Note that the empty lines are counted in the number of lines and the empty spaces and 
 line breaks (\n) are counted in determining the content length.
          </p>
          
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFieldAutoSize;
 
    public class TextField_appendTextExample extends Sprite {
         
        public function TextField_appendTextExample() {
            var outputText:TextField = new TextField();
            var today:Date = new Date();
                
            outputText.x = 10;
            outputText.y = 10;
            outputText.background = true;
            outputText.autoSize = TextFieldAutoSize.LEFT;
 
            outputText.text = "WHAT TIME IS IT?" + "\n\n";
 
            if((today.day == 0) || (today.day == 6)) {
                outputText.appendText("It's the weekend.");
                outputText.appendText("\n\n");
           
            } else {
                outputText.appendText("The time is: ");
                outputText.appendText(today.toLocaleTimeString() + ".\n\n");  
            }

            outputText.appendText("Number of characters including line breaks and spaces so far: ");
            outputText.appendText(outputText.length.toString() + "\n");
            outputText.appendText("Number of lines in the outputText: ");
            outputText.appendText(outputText.numLines.toString());   

            this.addChild(outputText);
        }
    }
}</pre></div>
        </div></div><a name="getCharBoundaries()"></a><a name="getCharBoundaries(int)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getCharBoundaries</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function getCharBoundaries(charIndex:<a href="../../int.html">int</a>):<a href="../../flash/geom/Rectangle.html">Rectangle</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>Returns a rectangle that is the bounding box of the character.</p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">charIndex</span>:<a href="../../int.html">int</a></code> &mdash; The zero-based index value for the character (for example, the first
  position is 0, the second position is 1, and so on).</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../flash/geom/Rectangle.html">Rectangle</a></code> &mdash; 
              A rectangle with
              <code>x</code>
              and
              <code>y</code>
              minimum and maximum values
  defining the bounding box of the character.
            </td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="../../flash/geom/Rectangle.html" target="">flash.geom.Rectangle</a></div><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          In the following example the
          <code>getCharBoundaries()</code>
          method is used to mark
 (put a spotlight on) a character that is selected by the user.
          <p>
            The class defines the
            <code>spotlight</code>
            Shape object that will be used to draw a rectangle around 
 each character that is selected. When the user clicks on the
            <code>myTextField</code>
            text field, the
            <code>clickHandler()</code>
            method is invoked.
          </p>
          
          <p>
            In the
            <code>clickHandler()</code>
            method, the
            <code>getCharIndexAtPoint()</code>
            method gets the clicked character's 
 index based on the
            <code>localX</code>
            and
            <code>localY</code>
            coordinates of the mouse click, which is relative 
 to the containing
            <code>Sprite</code>
            . The
            <code>getCharIndexAtPoint()</code>
            method returns
            <code>-1</code>
            if 
 the point (mouse click) was not over any character. Since the text field could be larger than the text, the returned 
 integer (
            <code>index</code>
            ) is checked to make sure the user has clicked on a character. The
            <code>index</code>
            integer 
 is also used by
            <code>getCharBoundaries()</code>
            to get a
            <code>Rectangle</code>
            object that holds the boundary 
 of the character. The
            <code>clear()</code>
            method clears any previously displayed
            <code>spotlight</code>
            Shape object. A 
 new rectangle the size of the character's width and height boundaries is produced at the location of the character 
 (offset from the (10, 10) coordinates) using the returned
            <code>frame</code>
            rectangle's x and y coordinates. 
 To put the spotlight on the character, the
            <code>spotlight</code>
            Shape object is filled with color yellow and the 
 opacity is set to 35 percent, so the character can be seen. Note that spaces are also considered a character.
          </p>
          
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.events.MouseEvent;
    import flash.text.TextField;
    import flash.geom.Rectangle;
    import flash.events.MouseEvent;
    import flash.text.TextFieldAutoSize;
    import flash.display.Shape;

    public class TextField_getCharBoundariesExample extends Sprite
    {
        private var myTextField:TextField = new TextField();    
        private var spotlight:Shape = new Shape();
        
        public function TextField_getCharBoundariesExample() {
            
            myTextField.x = 10;
            myTextField.y = 10; 
            myTextField.border = true;
            myTextField.selectable = false;
            myTextField.autoSize = TextFieldAutoSize.LEFT;
            
            myTextField.text = "Selected a character from this text by clicking on it."

            myTextField.addEventListener(MouseEvent.CLICK, clickHandler);
            
            this.addChild(myTextField);    
            this.addChild(spotlight);
         }

        private function clickHandler (e:MouseEvent):void {
            var index:int = myTextField.getCharIndexAtPoint(e.localX, e.localY);
 
            if (index != -1) {
                 var frame:Rectangle = myTextField.getCharBoundaries(index);

                spotlight.graphics.clear();    
                spotlight.graphics.beginFill(0xFFFF00, .35);
                spotlight.graphics.drawRect((frame.x + 10), (frame.y + 10), frame.width, frame.height);            
                spotlight.graphics.endFill();
            }
        } 
    }
}</pre></div>
        </div></div><a name="getCharIndexAtPoint()"></a><a name="getCharIndexAtPoint(Number,Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getCharIndexAtPoint</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function getCharIndexAtPoint(x:<a href="../../Number.html">Number</a>, y:<a href="../../Number.html">Number</a>):<a href="../../int.html">int</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>
          Returns the zero-based index value of the character at the point specified by the
          <code>x</code>
          and
          <code>y</code>
          parameters.
        </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>
              coordinate of the character.
            </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>
              coordinate of the character.
            </td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../int.html">int</a></code> &mdash; The zero-based index value of the character (for example, the first position is 0,
    the second position is 1, and so on).  Returns -1 if the point is not over any character.</td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          In the following example, when a user clicked on a character, the character is echoed
 in another text field above the text.
          <p>
            The first text field holds the text the user is going to select. In order to make sure the text 
 is clicked but not selected,
            <code>selectable</code>
            property is set to false. When the user clicks
 on the
            <code>firstTextField</code>
            text field, the
            <code>clickHandler()</code>
            method is invoked.
          </p>
          
          <p>
            In the
            <code>clickHandler()</code>
            method, the
            <code>getCharIndexAtPoint()</code>
            method returns the character's 
 index based on the
            <code>localX</code>
            and
            <code>localY</code>
            coordinates of the mouse click. Since the text field 
 could be larger than the text, the return integer (
            <code>index</code>
            ) is checked to make sure the user has clicked 
 on a character. (The
            <code>getCharIndexAtPoint()</code>
            method returns
            <code>-1</code>
            , if the point (mouse click) 
 was not over a character.) The mouse coordinates is used to set the coordinates of the new text field where the 
 echoed character will appear. The color of the character in the second text field is set to red. Finally 
 the text of the second field is set to the selected character, which is retrieved using the
            <code>charAt()</code>
            method. 
 Note that using the
            <code>text</code>
            property instead of the
            <code>appendText()</code>
            method will overwrite the character 
 in the second text field, instead of appending it.
          </p>
          
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.events.MouseEvent;
    import flash.text.TextField;
    import flash.geom.Rectangle;
    import flash.events.MouseEvent;
    import flash.text.TextFieldAutoSize;
    
    public class TextField_getCharIndexAtPointExample extends Sprite {
        private var firstTextField:TextField = new TextField();    
        private var secondTextField:TextField = new TextField();
        
        public function TextField_getCharIndexAtPointExample() {

            firstTextField.x = 100;
            firstTextField.y = 100; 
            firstTextField.width = 260;
            firstTextField.height = 20;
            firstTextField.border = true;
            firstTextField.background = true;
            firstTextField.selectable = false;
            
            firstTextField.text = "Selected a character from this text by clicking on it."

            firstTextField.addEventListener(MouseEvent.CLICK, clickHandler);

            this.addChild(firstTextField);    
            this.addChild(secondTextField);
         }

        private function clickHandler (e:MouseEvent):void {
            var index:int = firstTextField.getCharIndexAtPoint(e.localX, e.localY);

            if (index != -1) {
                secondTextField.x = mouseX;
                secondTextField.y =  70;
                secondTextField.border = true;
                secondTextField.selectable = false;
                secondTextField.background = true;
                secondTextField.textColor = 0xFF0000;
                secondTextField.autoSize = TextFieldAutoSize.LEFT;
                secondTextField.text = firstTextField.text.charAt(index);    
            }
        } 
    }
}</pre></div>
        </div></div><a name="getFirstCharInParagraph()"></a><a name="getFirstCharInParagraph(int)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getFirstCharInParagraph</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function getFirstCharInParagraph(charIndex:<a href="../../int.html">int</a>):<a href="../../int.html">int</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>Given a character index, returns the index of the first character in the same paragraph.</p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">charIndex</span>:<a href="../../int.html">int</a></code> &mdash; The zero-based index value of the character (for example, the first character is 0,
  the second character is 1, and so on).</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../int.html">int</a></code> &mdash; The zero-based index value of the first character in the same paragraph.</td></tr></table><br/><span class="label">Throws</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../RangeError.html">RangeError</a> </code> &mdash; The character index specified is out of range.</td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          In the following example, paragraph formatting is applied to the text field content. 
 When the user clicks on a paragraph, the text of the paragraph will be aligned right and when the user 
 clicks on the paragraph again, it will return to the original (default) format (left-align).
          <p>
            In the constructor, the
            <code>myTextField</code>
            text field is set to text wrap. The
            <code>getTextFormat</code>
            method returns the original format of the first character of the content of the text field, which is placed
 in the
            <code>originalFormat</code>
            TextFormat object. A new TextFormat object (
            <code>newFormat</code>
            ) is 
 also defined and its
            <code>align</code>
            property is assigned to right-justified. When the user clicks
 on the text field, the
            <code>clickHandler()</code>
            method is invoked.
          </p>
          
          <p>
            In the
            <code>clickHandler()</code>
            method, the
            <code>getCharIndexAtPoint()</code>
            method returns the character's 
 index based on the
            <code>localX</code>
            and
            <code>localY</code>
            coordinates of the mouse click. The first
            <code>if</code>
            statement checks to see if the use has clicked on a character. Using the
            <code>clickIndex</code>
            integer returned by the
            <code>getCharIndexAtPoint()</code>
            method, the
            <code>getFirstCharInParagraph()</code>
            method returns the index of the 
 first character in the paragraph the user has clicked. The index of the last character in the paragraph is
 determined by adding the length of the paragraph (using
            <code>getParagraphLength()</code>
            method) to the index of the first 
 character in the paragraph, minus the last character (
            <code>\n</code>
            ). The second
            <code>if</code>
            statement
 checks the format of the first character in the paragraph. If its alignment value is the same as the 
 original format (left-justified), the new format is applied to all the characters in the paragraph. 
 Otherwise, the format of the paragraph is set back to the original format. Alignment, along with formatting 
 like indent, bullet, tab stop, left and right margin are formats that are meant for paragraphs. 
 Note that once word wrap or line break is used, the formatting will only apply to the first line of the 
 paragraph if
            <code>endIndex</code>
            argument is not defined for the
            <code>setTextFormat()</code>
            method.
          </p>
          
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.events.MouseEvent;
    import flash.text.TextFormat;
    import flash.text.TextFormatAlign;

    public class TextField_getFirstCharInParagraphExample extends Sprite
    {
        private var myTextField:TextField = new TextField();
        private var originalFormat:TextFormat = new TextFormat();
        private var newFormat:TextFormat = new TextFormat(); 
        
        public function TextField_getFirstCharInParagraphExample() {
            myTextField.x = 10;
            myTextField.y = 10; 
            myTextField.border = true;
            myTextField.wordWrap = true;
            myTextField.width = 300;
            myTextField.height = 300; 
            myTextField.background = true;
             
            myTextField.appendText("The TextField class is used to create display objects for "
                        + "text display and input. All dynamic and input text fields in a SWF file " 
                        + "are instances of the TextField class. You can use the TextField class "
                        + "to perform low-level text rendering. However, in Flex, you typically use "
                        + "the Label, Text, TextArea, and TextInput controls to process text. "  
                        + "You can give a text field an instance name in the Property inspector "
                        + "and use the methods and properties of the TextField class to manipulate it with ActionScript. "
                        + "TextField instance names are displayed in the Movie Explorer and in the Insert "
                        + "Target Path dialog box in the Actions panel.\n\n"  
                        + "To create a text field dynamically, use the TextField constructor.\n\n"
                        + "The methods of the TextField class let you set, select, and manipulate "  
                        + "text in a dynamic or input text field that you create during authoring or at runtime.\n\n");

            originalFormat = myTextField.getTextFormat(0);

            newFormat.align = TextFormatAlign.RIGHT;

            myTextField.addEventListener(MouseEvent.CLICK, clickHandler);
  
            this.addChild(myTextField);
        }

        private function clickHandler(e:MouseEvent):void {
            var clickIndex:int = myTextField.getCharIndexAtPoint(e.localX, e.localY);
                  
            if(clickIndex != -1) {
                var paragraphFirstIndex:int = myTextField.getFirstCharInParagraph(clickIndex);
                var paragraphEndIndex:int = paragraphFirstIndex + ((myTextField.getParagraphLength(clickIndex) - 1));
            
                if (myTextField.getTextFormat(paragraphFirstIndex).align == originalFormat.align) {
                     myTextField.setTextFormat(newFormat, paragraphFirstIndex, paragraphEndIndex);
                }else {
                     myTextField.setTextFormat(originalFormat, paragraphFirstIndex, paragraphEndIndex);
                }
            } 
        }
    }
}</pre></div>
        </div></div><a name="getImageReference()"></a><a name="getImageReference(String)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getImageReference</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function getImageReference(id:<a href="../../String.html">String</a>):<a href="../../flash/display/DisplayObject.html">DisplayObject</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>
          Returns a DisplayObject reference for the given
          <code>id</code>
          , for an image or SWF file
  that has been added to an HTML-formatted text field by using an
          <code>&lt;img&gt;</code>
          tag.
  The
          <code>&lt;img&gt;</code>
          tag is in the following format:
          <p>
            <pre>
              <code>&lt;img src = 'filename.jpg' id = 'instanceName' &gt;</code>
            </pre>
          </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">id</span>:<a href="../../String.html">String</a></code> &mdash; 
              The
              <code>id</code>
              to match (in the
              <code>id</code>
              attribute of the
              <code>&lt;img&gt;</code>
              tag).
            </td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../flash/display/DisplayObject.html">DisplayObject</a></code> &mdash; 
              The display object corresponding to the image or SWF file with the matching
              <code>id</code>
              attribute in the
              <code>&lt;img&gt;</code>
              tag of the text field. For media loaded from an external source, 
  this object is a Loader object, and, once loaded, the media object is a child of that Loader object. For media 
  embedded in the SWF file, it is the loaded object. If no
              <code>&lt;img&gt;</code>
              tag with 
  the matching
              <code>id</code>
              exists, the method returns
              <code>null</code>
              .
            </td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#htmlText" target="">htmlText</a></div><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          In the following example, when the text field is clicked, the image in the field is set to 25 percent opacity and
 it rotates 90 degrees from its original rotation. The image will continue to rotate with each subsequent click.
          <p>
            The image (
            <code>image.jpg</code>
            ) is included via the HTML. (Here it is assumed that an image file is in the same 
 directory as the SWF file.) An
            <code>id</code>
            attribute needs to be defined for the
            <code>img</code>
            tag in order 
 to access the image using
            <code>getImageReference()</code>
            method. The
            <code>htmlText</code>
            property is used to include 
 HTML-formatted string content. When the user clicks on the
            <code>myTextField</code>
            text field, the
            <code>clickHandler()</code>
            method is invoked.
          </p>
          
          <p>
            In the
            <code>clickHandler()</code>
            method, the
            <code>getImageReference()</code>
            method returns a reference to 
 the image as a
            <code>DisplayObject</code>
            . This reference can be used to manipulate the image, like any
            <code>DisplayObject</code>
            object. Here, the
            <code>alpha</code>
            (transparency) and
            <code>rotation</code>
            properties are set. The
            <code>transform</code>
            property can also be used to access the display object's matrix, color transform, and pixel bounds. Note also that
            <code>flash.display.DisplayObject</code>
            needs to be imported.
          </p>
          
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.events.Event;
    import flash.events.MouseEvent;
    import flash.display.DisplayObject;
    
    import flash.text.TextFieldAutoSize;
    
    public class TextField_getImageReferenceExample extends Sprite
    {
        private var myTextField:TextField = new TextField();
        
        public function TextField_getImageReferenceExample()
        {
            var myText1:String = "&lt;p&gt;Here is an image we want to mainpulate: &lt;img src='image.jpg' id='testimage'&gt;&lt;/p&gt;";

            myTextField.x = 10;
            myTextField.y = 10;
            myTextField.width = 250;
            myTextField.height = 250;
            myTextField.background = true;
            myTextField.border = true;
            myTextField.border = true;
            myTextField.multiline = true;

            myTextField.htmlText = myText1;
            
            myTextField.addEventListener(MouseEvent.CLICK, clickHandler);
            
            this.addChild(myTextField);
        }
 
        private function clickHandler(e:MouseEvent):void {
            var imageRef:DisplayObject = myTextField.getImageReference("testimage");
 
            imageRef.rotation += 90;
            imageRef.x = 125;
            imageRef.y = 125;
            imageRef.alpha = 0.25;      
        }
    }
}</pre></div>
        </div></div><a name="getLineIndexAtPoint()"></a><a name="getLineIndexAtPoint(Number,Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getLineIndexAtPoint</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function getLineIndexAtPoint(x:<a href="../../Number.html">Number</a>, y:<a href="../../Number.html">Number</a>):<a href="../../int.html">int</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>
          Returns the zero-based index value of the line at the point specified by the
          <code>x</code>
          and
          <code>y</code>
          parameters.
        </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>
              coordinate of the line.
            </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>
              coordinate of the line.
            </td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../int.html">int</a></code> &mdash; The zero-based index value of the line (for example, the first line is 0, the
          second line is 1, and so on).  Returns -1 if the point is not over any line.</td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          In the following example, when a user selects a line from the Shakespeare's sonnet, 
 it is copied (appended) into a new text field.
          <p>
            In the constructor, the
            <code>poem</code>
            text field is set not to wrap (since it's a poem). 
 The
            <code>autoSize</code>
            property also is used to set the text to automatically fit and to have 
 it resize as a left-justified text. The
            <code>poemCopy</code>
            text field is placed under the
            <code>poem</code>
            text field. When a user clicks on some line of the poem, the
            <code>clickHandler()</code>
            method is invoked.
          </p>
          
          <p>
            In
            <code>clickHandler()</code>
            method, the
            <code>getLineIndexAtPoint()</code>
            method returns
 the line index of where the user has clicked based on the
            <code>localX</code>
            and
            <code>localY</code>
            coordinates of the mouse click. (Since the original poem fits the size of the text field here,
 it is not necessary to check for out of range error (
            <code>RangeError</code>
            ) thrown by
            <code>getCharIndexAtPoint()</code>
            method.) The line index is then used to get the content of 
 the line as a string with the
            <code>getLineText()</code>
            method, which is then appended to the
            <code>poemCopy</code>
            text field content. The copying can go on continuously but after a point, 
 the text will be outside of the range of the viewable
            <code>poemCopy</code>
            text field.
          </p>
          
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.events.MouseEvent;
    import flash.text.TextFormat;
    import flash.text.TextFieldAutoSize;

    public class TextField_getLineIndexAtPointExample extends Sprite {
        private var poem:TextField = new TextField();
        private var poemCopy:TextField = new TextField();
        
        public function TextField_getLineIndexAtPointExample() {
            poem.border = true;
            poem.autoSize = TextFieldAutoSize.LEFT;
            poem.x = 10;
            poem.wordWrap = false;

            poemCopy.height = 250;
            poemCopy.width = 270;
            poemCopy.y = 230;
            poemCopy.x = 10;
            poemCopy.background = true;
            poemCopy.border = true;
            poemCopy.wordWrap = false;
            
            poem.appendText("Let me not to the marriage of true minds\n"
                              + "Admit impediments. love is not love\n"
                              + "Which alters when it alteration finds\n"
                              + "Or bends with the remover to remove:\n"
                              + "O no! it is an ever-fixed mark\n" 
                              + "That looks on tempests and is never shaken;\n"
                              + "It is the star to every wandering bark,\n"
                              + "Whose worth's unknown, although his height be taken.\n"
                              + "Love's not Time's fool, though rosy lips and cheeks\n"
                              + "Within his bending sickle's compass come:\n"
                              + "Love alters not with his brief hours and weeks,\n"
                              + "But bears it out even to the edge of doom.\n"
                              + "If this be error and upon me proved,\n"
                              + "I never writ, nor no man ever loved.");

           poem.addEventListener(MouseEvent.CLICK, clickHandler); 

           this.addChild(poem); 
           this.addChild(poemCopy);
        }
    
        private function clickHandler(e:MouseEvent):void {
                var index:int = poem.getLineIndexAtPoint(e.localX, e.localY);
                var s:String;

                s = poem.getLineText(index);
                poemCopy.appendText(s + "\n");
        }
    }
}</pre></div>
        </div></div><a name="getLineIndexOfChar()"></a><a name="getLineIndexOfChar(int)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getLineIndexOfChar</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function getLineIndexOfChar(charIndex:<a href="../../int.html">int</a>):<a href="../../int.html">int</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>
          Returns the zero-based index value of the line containing the character specified 
  by the
          <code>charIndex</code>
          parameter.
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">charIndex</span>:<a href="../../int.html">int</a></code> &mdash; The zero-based index value of the character (for example, the first character is 0,
  the second character is 1, and so on).</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../int.html">int</a></code> &mdash; The zero-based index value of the line.</td></tr></table><br/><span class="label">Throws</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../RangeError.html">RangeError</a> </code> &mdash; The character index specified is out of range.</td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          In the following example, the
          <code>getLineIndexOfChar()</code>
          method returns
 the line numbers for the 100th and 500th characters in the text field.
          <p>
            The
            <code>myTextField</code>
            text field is defined to wrap and resize as a left-justified text. 
 The
            <code>getLineIndexOfChar()</code>
            method returns the line index for the specified character 
 indexes (100 and 500). This information is then appended after the paragraph. Note that since 
 line index begins with 0, the line index (
            <code>index</code>
            ) is increased by 1 to get the line number. 
 Also if the display is resized the line number may change but the information here will stay the same 
 since the method is only invoked once.
          </p>
          
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFieldAutoSize;

    public class TextField_getLineIndexOfCharExample extends Sprite 
    {
        public function TextField_getLineIndexOfCharExample()
        {
            var myTextField:TextField = new TextField();
            
            myTextField.x = 10;
            myTextField.y = 10;
            myTextField.width = 200;
            myTextField.background = true;  
            myTextField.border = true;
            myTextField.wordWrap = true;
            myTextField.autoSize = TextFieldAutoSize.LEFT;

            myTextField.appendText("The TextField class is used to create display objects for "
                + "text display and input. All dynamic and input text fields in a SWF file" 
                + "are instances of the TextField class. You can use the TextField class "
                + "to perform low-level text rendering. However, in Flex, you typically use "
                + "the Label, Text, TextArea, and TextInput controls to process text. "  
                + "You can give a text field an instance name in the Property inspector "
                + "and use the methods and properties of the TextField class to manipulate it with ActionScript. "
                + "TextField instance names are displayed in the Movie Explorer and in the Insert "
                + "Target Path dialog box in the Actions panel.\n\n");

            var index:int = myTextField.getLineIndexOfChar(100);
            myTextField.appendText("100th character is in line: " +  (index + 1) + "\n");
            index = myTextField.getLineIndexOfChar(500);
            myTextField.appendText("500th character is in line: " + (index + 1));

            this.addChild(myTextField);
        }
    }
}</pre></div>
        </div></div><a name="getLineLength()"></a><a name="getLineLength(int)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getLineLength</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function getLineLength(lineIndex:<a href="../../int.html">int</a>):<a href="../../int.html">int</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>Returns the number of characters in a specific text line.</p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">lineIndex</span>:<a href="../../int.html">int</a></code> &mdash; The line number for which you want the length.</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../int.html">int</a></code> &mdash; The number of characters in the line.</td></tr></table><br/><span class="label">Throws</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../RangeError.html">RangeError</a> </code> &mdash; The line number specified is out of range.</td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          In the following example, once the user selects a line, its line length (number of characters) is
 displayed in a separate text field.
          <p>
            As an illustration,
            <code>myTextField</code>
            text field, which displays the text that will be counted, is set to
            <code>INPUT</code>
            , meaning users can actually change the lines or add lines between the lines or at the end. 
 (There is an empty line created by using line break (
            <code>\n</code>
            ) at the end of the last line.) The
            <code>countLines</code>
            text field, where the result of counting the line length is displayed, is set below
            <code>myTextField</code>
            text field and its text is not selectable. When the user clicks on a line in the
            <code>myTextField</code>
            text field, 
 the
            <code>clickHandler()</code>
            method is invoked.
          </p>
          
          <p>
            In the
            <code>clickHandler()</code>
            method, the
            <code>getLineIndexAtPoint()</code>
            method returns the line index of 
 where the user clicked, by using the
            <code>localX</code>
            and
            <code>localY</code>
            coordinates of the mouse click. 
 The
            <code>if</code>
            statement checks to see if the use has clicked on a character. If so, the
            <code>getLineLength()</code>
            method, using the index of line, returns the number of characters in the line.
 Note that the empty lines between the lines include the second line break (
            <code>\n</code>
            ) and have 
 a count of 1 character, while the line after the last line has a 0 count. Spaces also count as one character. 
 The users can write a new line or changes a line and get the character count of the line by clicking on it. 
 If text wrap is used and the screen is resized, the line index could change.
          </p>
          
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFieldType;
    import flash.events.Event;
    import flash.events.MouseEvent;

    public class TextField_getLineLengthExample extends Sprite {
        private var myTextField:TextField = new TextField();
        private var countLines:TextField = new TextField();  

        public function TextField_getLineLengthExample() {
            myTextField.x = 10;
            myTextField.y = 10;
            myTextField.width = 350;
            myTextField.height = 150;
            myTextField.background = true;
            myTextField.border = true;
            myTextField.type = TextFieldType.INPUT;
            
            myTextField.appendText("Click on the lines to count its number of characters:\n\n");
            myTextField.appendText("This is a short line.\n");
            myTextField.appendText("This is a longer line than the last line.\n\n");
            myTextField.appendText("This one is even longer than the one before. It has two sentences.\n");

            this.addChild(myTextField);

            countLines.border = true;
            countLines.x = 10;
            countLines.y = 180;
            countLines.height = 30;
            countLines.width = 200;
            countLines.background = true;
            countLines.selectable = false;

           this.addChild(countLines);    

            myTextField.addEventListener(MouseEvent.CLICK, clickHandler);
        }

        private function clickHandler(e:MouseEvent):void {
            var index:int = myTextField.getLineIndexAtPoint(e.localX, e.localY);
        
            if (index != -1) {
            var lenght:int = myTextField.getLineLength(index);

            countLines.text = "Number of characters in the line is: " + lenght.toString();
            }
        }
    }
}</pre></div>
        </div></div><a name="getLineMetrics()"></a><a name="getLineMetrics(int)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getLineMetrics</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function getLineMetrics(lineIndex:<a href="../../int.html">int</a>):<a href="../../flash/text/TextLineMetrics.html">TextLineMetrics</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>Returns metrics information about a given text line.</p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">lineIndex</span>:<a href="../../int.html">int</a></code> &mdash; The line number for which you want metrics information.</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../flash/text/TextLineMetrics.html">TextLineMetrics</a></code> &mdash; A TextLineMetrics object.</td></tr></table><br/><span class="label">Throws</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../RangeError.html">RangeError</a> </code> &mdash; The line number specified is out of range.</td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextLineMetrics.html" target="">flash.text.TextLineMetrics</a><br/><a href="TextLineMetrics.html" target="">flash.text.TextLineMetrics</a></div><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example displays some line metrics values for two differently formatted lines of text.
          <p>
            The text appended is two lines from the
            <i>Song of Myself</i>
            by Walt Whitman. A new TextFormat object 
 (
            <code>newFormat</code>
            ) is used to set the format of the second line. The first line holds the
 default format. The
            <code>getLineMetrics()</code>
            method returns a
            <code>TextLineMetrics</code>
            object for a specific line. (Line index begins with 0.) Using
            <code>metrics1</code>
            and
            <code>metrics2</code>
            TextLineMetrics objects for the line one and two, respectively, the ascent, descent, height, and weight 
 value of the line are retrieved and displayed. The result numbers are converted to 
 string but not rounded. Note that this value is for the line and not a specific character. It 
 reflects the range of characters for a line. For example, if a line has different characters with 
 different height formats, the character with the highest height will determine the value. This also 
 means that if one of the character's format is changes, some of the metrics values could also change.
          </p>
          
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextLineMetrics;
    import flash.text.TextFieldAutoSize;
    import flash.text.AntiAliasType;
    import flash.text.TextFormat;
 
    public class TextField_getLineMetricsExample extends Sprite {

        public function TextField_getLineMetricsExample() {
            var myTextField:TextField = new TextField();
            var newFormat:TextFormat = new TextFormat(); 

            myTextField.x = 10;
            myTextField.y = 10;
            myTextField.background = true;
            myTextField.wordWrap = false;
            myTextField.autoSize = TextFieldAutoSize.LEFT;
            
            myTextField.appendText("A child said What is the grass? fetching it to me with full hands;\n");
            myTextField.appendText("How could I answer the child? I do not know what it is any more than he.\n\n");

            newFormat.size = 14;
            newFormat.font = "Arial";
            newFormat.italic = true;
            myTextField.setTextFormat(newFormat, 67, 139);
               
            var metrics1:TextLineMetrics = myTextField.getLineMetrics(0);
             
            myTextField.appendText("Metrics ascent for the line 1 is: " + metrics1.ascent.toString() + "\n");
            myTextField.appendText("Metrics descent is: " + metrics1.descent.toString() + "\n");
            myTextField.appendText("Metrics height is: " + metrics1.height.toString() + "\n"); 
            myTextField.appendText("Metrics width is: " + metrics1.width.toString() + "\n\n");

            var metrics2:TextLineMetrics = myTextField.getLineMetrics(1);
             
            myTextField.appendText("Metrics ascent for the line 2 is: " + metrics2.ascent.toString() + "\n");
            myTextField.appendText("Metrics descent is: " + metrics2.descent.toString() + "\n");
            myTextField.appendText("Metrics height is: " + metrics2.height.toString() + "\n"); 
            myTextField.appendText("Metrics width is: " + metrics2.width.toString() + "\n");

            addChild(myTextField);
        }
    }
}</pre></div>
        </div></div><a name="getLineOffset()"></a><a name="getLineOffset(int)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getLineOffset</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function getLineOffset(lineIndex:<a href="../../int.html">int</a>):<a href="../../int.html">int</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>
          Returns the character index of the first character in the line that 
  the
          <code>lineIndex</code>
          parameter specifies.
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">lineIndex</span>:<a href="../../int.html">int</a></code> &mdash; The zero-based index value of the line (for example, the first line is 0,
  the second line is 1, and so on).</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../int.html">int</a></code> &mdash; The zero-based index value of the first character in the line.</td></tr></table><br/><span class="label">Throws</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../RangeError.html">RangeError</a> </code> &mdash; The line number specified is out of range.</td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example checks for the first character of the line 4, which 
 will change if the screen (and the text field) is resized.
          <p>
            The
            <code>myTextField</code>
            text field is set to word wrap. The
            <code>countField</code>
            text field will display the first character of line 4. When the user clicks on the
            <code>myTextField</code>
            text field, the
            <code>clickHandler()</code>
            method is invoked.
          </p>
          
          <p>
            In the
            <code>clickHandler()</code>
            method, the
            <code>getLineOffset()</code>
            method returns 
 the index of the first character in the line index 3, which is the fourth line of the text. 
 (First line has a 0 index.) The
            <code>charAt()</code>
            method is used to get the character 
 using the index of the first character of the fourth line. The
            <code>countField</code>
            text field 
 content is updated with this information using the
            <code>text</code>
            property of the
            <code>countField</code>
            text field. Using the
            <code>countField.text</code>
            property means that 
 each time after the click the content of the
            <code>countField</code>
            text field will be overwritten. 
 If the user resizes the display, the content will wrap and the first character of the line 4 could 
 change. By clicking again on the
            <code>myTextField</code>
            field, the content of
            <code>countField</code>
            text field is updated with the new first character for the fourth line.
          </p>
          
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.events.MouseEvent;

    public class TextField_getLineOffsetExample extends Sprite {
        private var myTextField:TextField = new TextField();
        private var countField:TextField = new TextField();
        
        public function TextField_getLineOffsetExample() {
            myTextField.x = 10;
            myTextField.y = 10;
            myTextField.width = 150;
            myTextField.height = 300;
            myTextField.background = true;
            myTextField.border = true;
            myTextField.wordWrap = true;

            countField.height = 20;
            countField.width = 200;
            countField.x = 10;
            countField.y = 320;
            countField.selectable = false;
            
            myTextField.appendText("The TextField class is used to create display objects for "
                        + "text display and input. All dynamic and input text fields in a SWF file " 
                        + "are instances of the TextField class. You can use the TextField class "
                        + "to perform low-level text rendering. However, in Flex, you typically use "
                        + "the Label, Text, TextArea, and TextInput controls to process text. "  
                        + "You can give a text field an instance name in the Property inspector "
                        + "and use the methods and properties of the TextField class to manipulate it with ActionScript.");

            myTextField.addEventListener(MouseEvent.CLICK, clickHandler);
        
            this.addChild(myTextField);
            this.addChild(countField);
        }
    
            private function clickHandler(e:MouseEvent):void {
                var c:String;
                var index:int;
                
                index = myTextField.getLineOffset(3);
                c = myTextField.text.charAt(index);
                countField.text = "The first character of line 4 is: " + c;
            }
    }
}</pre></div>
        </div></div><a name="getLineText()"></a><a name="getLineText(int)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getLineText</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function getLineText(lineIndex:<a href="../../int.html">int</a>):<a href="../../String.html">String</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>
          Returns the text of the line specified by the
          <code>lineIndex</code>
          parameter.
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">lineIndex</span>:<a href="../../int.html">int</a></code> &mdash; The zero-based index value of the line (for example, the first line is 0,
  the second line is 1, and so on).</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../String.html">String</a></code> &mdash; The text string contained in the specified line.</td></tr></table><br/><span class="label">Throws</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../RangeError.html">RangeError</a> </code> &mdash; The line number specified is out of range.</td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          In the following example, the line numbers of all the instances of the word "love" used in Shakespeare's 
 sonnet are found and displayed.
          <p>
            The
            <code>poem</code>
            text field is set to fit automatically the text and to resize as a left-justified text.
 The
            <code>wordWrap</code>
            property is set to
            <code>false</code>
            , so the lines of the poem would not wrap, though 
 normally when using the
            <code>autoSize</code>
            property, this should not be a problem. The
            <code>for</code>
            loop iterates through the lines 
 of the sonnet using the property
            <code>numLines</code>
            of the text field. The
            <code>getLineText()</code>
            method 
 returns the content of the line as a string. (Note that the
            <code>numLines</code>
            property returns the number 
 of lines starting with line 1, while for the
            <code>getLineText()</code>
            method the line number begins with 0.) 
 Using the regular expression pattern (
            <code>/love/i</code>
            ), the
            <code>if</code>
            statement looks for any substring 
 of the word in upper or lowercase. If the pattern is found, the
            <code>search</code>
            method returns the index of 
 the first matching substring, otherwise it returns
            <code>-1</code>
            (if there is no match). The line number where 
 "love" was found (
            <code>(i + 1)</code>
            ) is then placed in the string
            <code>lineResult</code>
            . The string method converts 
 the number argument (
            <code>(i + 1)</code>
            ) to a string as long as there is another argument that is a string (" "). 
 The line result of the search will include lines with the words "loved" or "Love's." If the string "Love was found in lines:" 
 was appended before the
            <code>for</code>
            loop, the word "Love" in this line would also have been included.
          </p>
          
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFieldAutoSize;
    import flash.utils.Timer;
    import flash.events.TimerEvent;
 
    public class TextField_getLineTextExample extends Sprite {
           
        public function TextField_getLineTextExample() {
           var poem:TextField = new TextField();
           var lineResult:String = ""; 
           var pattern:RegExp = /love/i;

            poem.x = 10;
            poem.y = 10;
            poem.background = true;
            poem.wordWrap = false;
            poem.autoSize = TextFieldAutoSize.LEFT;
            
            poem.text = "Let me not to the marriage of true minds\n"
                              + "Admit impediments. love is not love\n"
                              + "Which alters when it alteration finds\n"
                              + "Or bends with the remover to remove:\n"
                              + "O no! it is an ever-fixed mark\n" 
                              + "That looks on tempests and is never shaken;\n"
                              + "It is the star to every wandering bark,\n"
                              + "Whose worth's unknown, although his height be taken.\n"
                              + "Love's not Time's fool, though rosy lips and cheeks\n"
                              + "Within his bending sickle's compass come:\n"
                              + "Love alters not with his brief hours and weeks,\n"
                              + "But bears it out even to the edge of doom.\n"
                              + "If this be error and upon me proved,\n"
                              + "I never writ, nor no man ever loved.\n\n";

            for (var i:int = 0; i &lt; poem.numLines; i++) {

                var s:String = poem.getLineText(i);
                        
                if(s.search(pattern) != -1) {
                    lineResult += (i + 1) + " ";
                }
            }

            poem.appendText("Love was found in lines: " + lineResult);
             
            this.addChild(poem);                      
        }
    }
}</pre></div>
        </div></div><a name="getParagraphLength()"></a><a name="getParagraphLength(int)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getParagraphLength</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function getParagraphLength(charIndex:<a href="../../int.html">int</a>):<a href="../../int.html">int</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>
          Given a character index, returns the length of the paragraph containing the given character.
  The length is relative to the first character in the paragraph (as returned by
          <code>getFirstCharInParagraph()</code>
          ), not to the character index passed in.
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">charIndex</span>:<a href="../../int.html">int</a></code> &mdash; The zero-based index value of the character (for example, the first character is 0,
  the second character is 1, and so on).</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../int.html">int</a></code> &mdash; Returns the number of characters in the paragraph.</td></tr></table><br/><span class="label">Throws</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../RangeError.html">RangeError</a> </code> &mdash; The character index specified is out of range.</td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#getFirstCharInParagraph()" target="">flash.text.TextField.getFirstCharInParagraph()</a></div><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          In the following example, when a user selects a paragraph, the paragraph's length and number
 of "s" characters in the paragraph are displayed in a separate text field.
          <p>
            The
            <code>myTextField</code>
            text field displays the paragraphs that the user will select. 
 When the user click on the text field, the
            <code>MouseEvent.CLICK</code>
            event is dispatched, and 
 the
            <code>clickHandler()</code>
            method is called. The paragraph length and number of "s" characters 
 will appear in
            <code>countField</code>
            text field, which is placed below
            <code>myTextField</code>
            text field.
          </p>
          
          <p>
            In the
            <code>clickHandler()</code>
            method, the
            <code>getCharIndexAtPoint()</code>
            method returns the character's 
 index based on the
            <code>localX</code>
            and
            <code>localY</code>
            coordinates of the mouse click. The first
            <code>if</code>
            statement checks to see if the use has clicked on a character. The
            <code>getFirstCharInParagraph()</code>
            method, 
 uses this index to return the index of the first character in the same paragraph. The paragraph length returned by
            <code>getParagraphLength()</code>
            method is used with the index of the first character in the paragraph to determine the 
 index for the end of the paragraph. A
            <code>for</code>
            loop iterates through the paragraph looking for the number of "s" 
 characters.
          </p>
          
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.events.MouseEvent;

    public class TextField_getParagraphLengthExample extends Sprite {
        private var myTextField:TextField = new TextField();
        private var countField:TextField = new TextField();

        public function TextField_getParagraphLengthExample() {
            myTextField.x = 10;
            myTextField.y = 10;
            myTextField.background = true;
            myTextField.border = true;
            myTextField.wordWrap = true;
            myTextField.width = 300;
            myTextField.height = 280;
            
            myTextField.appendText("The TextField class is used to create display objects for "
                        + "text display and input. All dynamic and input text fields in a SWF file" 
                        + "are instances of the TextField class. You can use the TextField class "
                        + "to perform low-level text rendering. However, in Flex, you typically use "
                        + "the Label, Text, TextArea, and TextInput controls to process text. "  
                        + "You can give a text field an instance name in the Property inspector "
                        + "and use the methods and properties of the TextField class to manipulate it with ActionScript. "
                        + "TextField instance names are displayed in the Movie Explorer and in the Insert "
                        + "Target Path dialog box in the Actions panel.\n\n"  
                        + "To create a text field dynamically, use the TextField() constructor.\n\n"
                        + "The methods of the TextField class let you set, select, and manipulate "  
                        + "text in a dynamic or input text field that you create during authoring or at runtime.");

            myTextField.addEventListener(MouseEvent.CLICK, clickHandler);
            
            countField.x = 10;
            countField.y = 300;
            countField.height = 50;
            countField.width = 250;
            countField.background = true;
            countField.selectable = false;

            this.addChild(myTextField);
            this.addChild(countField);
        }

        private function clickHandler(e:MouseEvent):void {
            var index:int = myTextField.getCharIndexAtPoint(e.localX, e.localY);
            
            if(index != -1) {
                var beginParag:int = myTextField.getFirstCharInParagraph(index);
                var paragLength:int = myTextField.getParagraphLength(index);
                var endParag:int = beginParag + paragLength;
                var sCount:uint = 0;

                for (var i:int = beginParag; i &lt;= endParag; i++) {
                    if ((myTextField.text.charAt(i) == "s") || (myTextField.text.charAt(i) == "S")) {
                        sCount++; 
                    }

                countField.text = "Paragraph length is: " + paragLength.toString() + "\n" 
                        + "Number of 's' characters in the paragraph: " + sCount.toString();
                }
            }
        }
    }
}</pre></div>
        </div></div><a name="getTextFormat()"></a><a name="getTextFormat(int,int)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getTextFormat</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function getTextFormat(beginIndex:<a href="../../int.html">int</a> = -1, endIndex:<a href="../../int.html">int</a> = -1):<a href="../../flash/text/TextFormat.html">TextFormat</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>
          Returns a TextFormat object that contains formatting information for the range of text that the
          <code>beginIndex</code>
          and
          <code>endIndex</code>
          parameters specify. Only properties 
  that are common to the entire text specified are set in the resulting TextFormat object. 
  Any property that is
          <i>mixed</i>
          , meaning that it has different values
     at different points in the text, has a value of
          <code>null</code>
          .
          <p>If you do not specify
  values for these parameters, this method is applied to all the text in the text field.</p>
          
          <p>The following table describes three possible usages:</p>
          
          <table class="innertable" ><tr><th>Usage</th><th>Description</th></tr><tr><td>
                    <code>my_textField.getTextFormat()</code>
                  </td><td>
                    Returns a TextFormat object containing formatting information for all text in a text field.
  Only properties that are common to all text in the text field are set in the resulting TextFormat
  object. Any property that is
                    <i>mixed</i>
                    , meaning that it has different values at different
     points in the text, has a value of
                    <code>null</code>
                    .
                  </td></tr><tr><td>
                    <code>my_textField.getTextFormat(beginIndex:Number)</code>
                  </td><td>
                    Returns a TextFormat object containing a copy of the text format of the character at the
                    <code>beginIndex</code>
                    position.
                  </td></tr><tr><td>
                    <code>my_textField.getTextFormat(beginIndex:Number,endIndex:Number)</code>
                  </td><td>
                    Returns a TextFormat object containing formatting information for the span of
  text from
                    <code>beginIndex</code>
                    to
                    <code>endIndex-1</code>
                    . Only properties that are common
  to all of the text in the specified range are set in the resulting TextFormat object. Any property
  that is mixed (that is, has different values at different points in the range) has its value set to
                    <code>null</code>
                    .
                  </td></tr></table>
          
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">beginIndex</span>:<a href="../../int.html">int</a></code> (default = <code>-1</code>)<code></code> &mdash; Optional; an integer that specifies the starting location of a range of text within the text field.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">endIndex</span>:<a href="../../int.html">int</a></code> (default = <code>-1</code>)<code></code> &mdash; 
              Optional; an integer that specifies the position of the first character after the desired
     text span. As designed, if you specify
              <code>beginIndex</code>
              and
              <code>endIndex</code>
              values, 
     the text from
              <code>beginIndex</code>
              to
              <code>endIndex-1</code>
              is read.
            </td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../flash/text/TextFormat.html">TextFormat</a></code> &mdash; The TextFormat object that represents the formatting properties for the specified text.</td></tr></table><br/><span class="label">Throws</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../RangeError.html">RangeError</a> </code> &mdash; 
              The
              <code>beginIndex</code>
              or
              <code>endIndex</code>
              specified is out of range.
            </td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextFormat.html" target="">flash.text.TextFormat</a><br/><a href="TextField.html#defaultTextFormat" target="">flash.text.TextField.defaultTextFormat</a><br/><a href="TextField.html#setTextFormat()" target="">flash.text.TextField.setTextFormat()</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="TextField.html#getFirstCharInParagraph()" target="">getFirstCharInParagraph()</a>
          or
          <a href="TextField.html#setTextFormat()" target="">setTextFormat()</a>
          method example for illustrations of how 
     to use the
          <code>getTextFormat()</code>
          method.
        </div><a name="isFontCompatible()"></a><a name="isFontCompatible(String,String)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">isFontCompatible</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public static function isFontCompatible(fontName:<a href="../../String.html">String</a>, fontStyle:<a href="../../String.html">String</a>):<a href="../../Boolean.html">Boolean</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>
          Returns true if an embedded font is available with the specified
          <code>fontName</code>
          and
          <code>fontStyle</code>
          where
          <code>Font.fontType</code>
          is
          <code>flash.text.FontType.EMBEDDED</code>
          .  Starting with Flash Player 10,
  two kinds of embedded fonts can appear in a SWF file.  Normal embedded fonts are only used with 
  TextField objects.
  CFF embedded fonts are only used with the flash.text.engine classes.  The two types are distinguished by the
          <code>fontType</code>
          property of the
          <code>Font</code>
          class, as returned by the
          <code>enumerateFonts()</code>
          function.
          <p>
            TextField cannot use a font of type
            <code>EMBEDDED_CFF</code>
            . If
            <code>embedFonts</code>
            is set to
            <code>true</code>
            and the only font available at run time with the specified name and style is of type
            <code>EMBEDDED_CFF</code>
            , 
  Flash Player fails to render the text, as if no embedded font were available with the specified name and style.
          </p>
          
          <p>
            If both
            <code>EMBEDDED</code>
            and
            <code>EMBEDDED_CFF</code>
            fonts are available with the same name and style, the
            <code>EMBEDDED</code>
            font is selected and text renders with the
            <code>EMBEDDED</code>
            font.
          </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">fontName</span>:<a href="../../String.html">String</a></code> &mdash; The name of the embedded font to check.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">fontStyle</span>:<a href="../../String.html">String</a></code> &mdash; 
              Specifies the font style to check.  Use
              <code>flash.text.FontStyle</code>
              
            </td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="../../Boolean.html">Boolean</a></code> &mdash; 
              <code>true</code>
              if a compatible embedded font is available, otherwise
              <code>false</code>
              .
            </td></tr></table><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; 
              The
              <code>fontStyle</code>
              specified is not a member of
              <code>flash.text.FontStyle</code>
              .
            </td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="../../flash/text/engine/FontDescription.html#fontLookup" target="">flash.text.engine.FontDescription.fontLookup</a><br/><a href="../../flash/text/engine/TextBlock.html#createTextLine" target="">flash.text.engine.TextBlock.createTextLine</a><br/><a href="FontType.html#EMBEDDED_CFF" target="">flash.text.FontType.EMBEDDED_CFF</a></div></div><a name="replaceSelectedText()"></a><a name="replaceSelectedText(String)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">replaceSelectedText</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function replaceSelectedText(value:<a href="../../String.html">String</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>
          Replaces the current selection with the contents of the
          <code>value</code>
          parameter.
  The text is inserted at the position of the current selection, using the current default character
  format and default paragraph format. The text is not treated as HTML.
          <p>
            You can use the
            <code>replaceSelectedText()</code>
            method to insert and delete text without disrupting
  the character and paragraph formatting of the rest of the text.
          </p>
          
          <p>
            <b>Note:</b>
            This method does not work if a style sheet is applied to the text field.
          </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">value</span>:<a href="../../String.html">String</a></code> &mdash; The string to replace the currently selected text.</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="../../Error.html">Error</a> </code> &mdash; This method cannot be used on a text field with a style sheet.</td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="../../flash/display/Stage.html#focus" target="">flash.display.Stage.focus</a></div><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          In the following example, the user erases some text from the first text field
 by selecting it and replaces a selected text in the second text field with "NEW TEXT" string.
          <p>
            Two different TextField objects are created and event listeners are added for the
            <code>MouseEvent.MOUSE_UP</code>
            events. Mouse up occurs when the user releases the mouse, 
 an event that normally happens after a selection of text is made. Note that the default 
 setting for a text field is for its text to be selected.
          </p>
          
          <p>
            In the
            <code>mouseHandler1()</code>
            method, when a user release a mouse in the
            <code>myTextField1</code>
            text field, the text is erased by replacing it with an empty 
 string. This can continue until all the text is erased. In the
            <code>mouseHandler2()</code>
            method, when a user selects some text in
            <code>myTextField2</code>
            text field, properties
            <code>selectionBeginIndex</code>
            and
            <code>selectionEndIndex</code>
            are checked to see if 
 any character was selected. (The
            <code>selectionBeginIndex</code>
            and
            <code>selectionEndIndex</code>
            properties don't have the same value if some text were selected.) The selected text is then replaced 
 with "NEW TEXT" string. This can continue until all the original text of the second text field is 
 replaced with the "NEW TEXT" string.
          </p>
          
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.text.TextField;    
    import flash.events.MouseEvent;

    public class TextField_replaceSelectedTextExample extends Sprite {
        private var myTextField1:TextField = new TextField();
        private var myTextField2:TextField = new TextField();
        
        public function TextField_replaceSelectedTextExample() {
            myTextField1.x = 10;
            myTextField1.width = 300;
            myTextField1.height = 50; 
            myTextField1.background = true; 
            myTextField1.border = true;
            myTextField1.text = "Select the text you want to remove from the line.";
            
            myTextField2.x = 10;
            myTextField2.y = 60;
            myTextField2.width = 300;
            myTextField2.height = 50;
            myTextField2.background = true;
            myTextField2.border = true;
            myTextField2.text = "Select the text you want to replace with NEW TEXT.";
            
            myTextField1.addEventListener(MouseEvent.MOUSE_UP, mouseHandler1);
            myTextField2.addEventListener(MouseEvent.MOUSE_UP, mouseHandler2);
            
            this.addChild(myTextField1);
            this.addChild(myTextField2);
        }
        
        private function mouseHandler1(e:MouseEvent):void {
            myTextField1.replaceSelectedText("");
        }

        private function mouseHandler2(e:MouseEvent):void {
            if(myTextField2.selectionBeginIndex != myTextField2.selectionEndIndex) {
                myTextField2.replaceSelectedText("NEW TEXT");    
            }
        }
    }
}</pre></div>
        </div></div><a name="replaceText()"></a><a name="replaceText(int,int,String)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">replaceText</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function replaceText(beginIndex:<a href="../../int.html">int</a>, endIndex:<a href="../../int.html">int</a>, newText:<a href="../../String.html">String</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>
          Replaces the range of characters that the
          <code>beginIndex</code>
          and
          <code>endIndex</code>
          parameters specify with the contents
     of the
          <code>newText</code>
          parameter. As designed, the text from
          <code>beginIndex</code>
          to
          <code>endIndex-1</code>
          is replaced.
          <p>
            <b>Note:</b>
            This method does not work if a style sheet is applied to the text field.
          </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">beginIndex</span>:<a href="../../int.html">int</a></code> &mdash; The zero-based index value for the start position of the replacement range.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">endIndex</span>:<a href="../../int.html">int</a></code> &mdash; The zero-based index position of the first character after the desired
     text span.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">newText</span>:<a href="../../String.html">String</a></code> &mdash; The text to use to replace the specified range of characters.</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="../../Error.html">Error</a> </code> &mdash; This method cannot be used on a text field with a style sheet.</td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example uses the
          <code>replaceText()</code>
          method to delete, replace and insert 
 some text into a text field.
          <p>
            The
            <code>outputText</code>
            text field is set to automatically fit the text and to resize as a left-justified text. 
 With the first
            <code>replaceText()</code>
            method call, the first line ("This is the wrong heading") 
 is replaced with "THIS IS THE HEADING FOR EVERYONE." With the second method call, the text "CORRECT" 
 is inserted between "THE" and "HEADING." With the third method call, the words "FOR EVERYONE" are deleted. 
 Note that with each call to the method
            <code>appendText()</code>
            , the current text's begin and end index 
 are changed. Here, only the final text (after the changes have been made) will display.
          </p>
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFieldAutoSize;
    
    public class TextField_replaceTextExample extends Sprite {

        public function TextField_replaceTextExample() {
            var outputText:TextField = new TextField();

            outputText.x = 10;
            outputText.y = 10;
            outputText.background = true;
            outputText.autoSize = TextFieldAutoSize.LEFT;
            
            outputText.appendText("This is the wrong heading");
            outputText.appendText("\n\n"); 
            outputText.appendText("This is the body of the text.");

            outputText.replaceText(0, 25, "THIS IS THE HEADING FOR EVERYONE");

            outputText.replaceText(12, 12, "CORRECT ");
            
            outputText.replaceText(27, 40, "");
            
           this.addChild(outputText);
         }
    }
}</pre></div>
        </div></div><a name="setSelection()"></a><a name="setSelection(int,int)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">setSelection</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function setSelection(beginIndex:<a href="../../int.html">int</a>, endIndex:<a href="../../int.html">int</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>
          Sets as selected the text designated by the index values of the
  first and last characters, which are specified with the
          <code>beginIndex</code>
          and
          <code>endIndex</code>
          parameters. If the two parameter values are the same,
  this method sets the insertion point, as if you set the
          <code>caretIndex</code>
          property.
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">beginIndex</span>:<a href="../../int.html">int</a></code> &mdash; The zero-based index value of the first character in the selection
  (for example, the first character is 0, the second character is 1, and so on).</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">endIndex</span>:<a href="../../int.html">int</a></code> &mdash; The zero-based index value of the last character in the selection.</td></tr></table></p><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextField.html#selectable" target="">selectable</a><br/><a href="TextField.html#selectionBeginIndex" target="">selectionBeginIndex</a><br/><a href="TextField.html#selectionEndIndex" target="">selectionEndIndex</a><br/><a href="TextField.html#caretIndex" target="">caretIndex</a></div><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          In the following example, when the user clicks anywhere in the text field a predefined range 
 of text will be selected (highlighting the words "TEXT IN ALL CAPS").
          <p>
            Two event listeners for the
            <code>myTextField</code>
            text field respond to the user's mouse clicks or mouse up events.
 Mouse up will occur when the user releases the mouse, an event that normally happens after a selection of text is made. 
 Note that the default setting for a text field is for its text to be selected. When some text is clicked,
            <code>clickHandler()</code>
            method is invoked. When some text is selected and the mouse is released,
            <code>mouseUpHandler()</code>
            method is invoked.
          </p>
          
          <p>
            In both
            <code>clickHandler()</code>
            and
            <code>mouseUpHandler()</code>
            methods, the
            <code>setSelection()</code>
            method
 sets only the characters between indexes 54 and 70 (TEXT IN ALL CAPS) to be selected.
          </p>
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.events.MouseEvent;
    import flash.text.TextField;
    import flash.text.TextFieldAutoSize;
    
    public class TextField_setSelectionExample extends Sprite
    {
        private var myTextField:TextField = new TextField();

        public function TextField_setSelectionExample() {
            myTextField.autoSize = TextFieldAutoSize.LEFT;
            myTextField.text = "No matter where you click on this text field only the TEXT IN ALL CAPS is selected.";

            myTextField.addEventListener(MouseEvent.CLICK, clickHandler);
            myTextField.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);

            this.addChild(myTextField);
        }

        private function clickHandler(event:MouseEvent):void {
            myTextField.setSelection(54, 70);
        }

        private function mouseUpHandler(event:MouseEvent):void {
            myTextField.setSelection(54, 70);
        }

    }
}</pre></div>
        </div></div><a name="setTextFormat()"></a><a name="setTextFormat(flash.text.TextFormat,int,int)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">setTextFormat</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public function setTextFormat(format:<a href="../../flash/text/TextFormat.html">TextFormat</a>, beginIndex:<a href="../../int.html">int</a> = -1, endIndex:<a href="../../int.html">int</a> = -1):<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 the text formatting that the
          <code>format</code>
          parameter specifies to the specified text in a text field.
  The value of
          <code>format</code>
          must be a TextFormat object that specifies the
  desired text formatting changes. Only the non-null properties of
          <code>format</code>
          are applied
  to the text field. Any property of
          <code>format</code>
          that is set to
          <code>null</code>
          is not
  applied. By default, all of the properties of a newly created TextFormat object are set to
          <code>null</code>
          .
          <p>
            <b>Note:</b>
            This method does not work if a style sheet is applied to the text field.
          </p>
          
          <p>
            The
            <code>setTextFormat()</code>
            method changes the text formatting applied to a range of
  characters or to the entire body of text in a text field. To apply the properties of format to all text in the text
  field, do not specify values for
            <code>beginIndex</code>
            and
            <code>endIndex</code>
            . To apply the 
  properties of the format to a range of text, specify values for the
            <code>beginIndex</code>
            and 
  the
            <code>endIndex</code>
            parameters. You can use the
            <code>length</code>
            property to determine 
  the index values.
          </p>
          
          <p>The two types of formatting information in a TextFormat object are
  character level formatting and paragraph level formatting.
  Each character in a text field can have its own character formatting
  settings, such as font name, font size, bold, and italic.</p>
          
          <p>For paragraphs, the first character of the paragraph is examined for the paragraph formatting
  settings for the entire paragraph. Examples of paragraph formatting settings are left margin,
  right margin, and indentation.</p>
          
          <p>
            Any text inserted manually by the user, or replaced by the
            <code>replaceSelectedText()</code>
            method, receives the default text field formatting for new text,
  and not the formatting specified for the text insertion point. To set the default
  formatting for new text, use
            <code>defaultTextFormat</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">format</span>:<a href="../../flash/text/TextFormat.html">TextFormat</a></code> &mdash; A TextFormat object that contains character and paragraph formatting information.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">beginIndex</span>:<a href="../../int.html">int</a></code> (default = <code>-1</code>)<code></code> &mdash; Optional; an integer that specifies the zero-based index position specifying the 
     first character of the desired range of text.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">endIndex</span>:<a href="../../int.html">int</a></code> (default = <code>-1</code>)<code></code> &mdash; 
              Optional; an integer that specifies the first character after the desired text span.
     As designed, if you specify
              <code>beginIndex</code>
              and
              <code>endIndex</code>
              values, 
     the text from
              <code>beginIndex</code>
              to
              <code>endIndex-1</code>
              is updated.
              <p>
                
                <table class="innertable" ><tr><th>Usage</th><th>Description</th></tr><tr><td>
                          <code>my_textField.setTextFormat(textFormat:TextFormat)</code>
                        </td><td>
                          Applies the properties of
                          <code>textFormat</code>
                          to all text in the text
  field.
                        </td></tr><tr><td>
                          <code>my_textField.setTextFormat(textFormat:TextFormat, beginIndex:int)</code>
                        </td><td>
                          Applies the properties of
                          <code>textFormat</code>
                          to the text starting with the
                          <code>beginIndex</code>
                          position.
                        </td></tr><tr><td>
                          <code>my_textField.setTextFormat(textFormat:TextFormat, beginIndex:int,
        endIndex:int)</code>
                        </td><td>
                          Applies the properties of the
                          <code>textFormat</code>
                          parameter to the span of
  text from the
                          <code>beginIndex</code>
                          position to the
                          <code>endIndex-1</code>
                          position.
                        </td></tr></table>
                
              </p>
              
              <p>
                Notice that any text inserted manually by the user, or replaced by the
                <code>replaceSelectedText()</code>
                method, receives the default text field formatting for new
  text, and not the formatting specified for the text insertion point. To set a text field's
  default formatting for new text, use the
                <code>defaultTextFormat</code>
                property.
              </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="../../Error.html">Error</a> </code> &mdash; This method cannot be used on a text field with a style sheet.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20"></td><td><code><a href="../../RangeError.html">RangeError</a> </code> &mdash; 
              The
              <code>beginIndex</code>
              or
              <code>endIndex</code>
              specified is out of range.
            </td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="TextFormat.html" target="">flash.text.TextFormat</a><br/><a href="TextField.html#defaultTextFormat" target="">flash.text.TextField.defaultTextFormat</a></div><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          In the following example, when the text is clicked, a defined range of text, "TEXT IN ALL CAPS," switches
 format between the default text format and the new format.
          <p>
            An event listener for the
            <code>myTextField</code>
            text field is added to respond to the mouse clicks by invoking
 the
            <code>clickHandler()</code>
            method. In the
            <code>clickHandler()</code>
            method, the
            <code>getTextFormat()</code>
            method returns the current format of a character (index 55) from the intended range of the text, which is then placed 
 in the
            <code>currentTextFormat</code>
            TextFormat object. The
            <code>if</code>
            statement checks the
            <code>currentTextFormat</code>
            text format to see if the character in the range is using the new format (font point is set to 18). If not, the new format changes 
 the size to 18 point, color to red, and applies underline and italics to the range of text between 54-70 (TEXT IN ALL CAPS). 
 If the character in the range is using the new format, the format of the range is set back to the default (original) 
 format of the text field.
          </p>
          
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFormat;  
    import flash.text.TextFieldAutoSize;  
    import flash.events.MouseEvent;

    public class TextField_setTextFormatExample extends Sprite {
        private var myTextField:TextField = new TextField();
        private var newFormat:TextFormat = new TextFormat();
        
        public function TextField_setTextFormatExample() {
            myTextField.autoSize = TextFieldAutoSize.LEFT;
            myTextField.selectable = false;
            myTextField.background = true;
            myTextField.text = "No matter where you click on this text field only the TEXT IN ALL CAPS changes format.";

            myTextField.addEventListener(MouseEvent.CLICK, clickHandler);

            newFormat.color = 0xFF0000;
            newFormat.size = 18;
            newFormat.underline = true;
            newFormat.italic = true;
                
            this.addChild(myTextField);
        }

        private function clickHandler(event:MouseEvent):void {
            var currentTextFormat:TextFormat = myTextField.getTextFormat(55);
            
            if(currentTextFormat.size != 18) {
                myTextField.setTextFormat(newFormat, 54, 70);
            }
            else {
                myTextField.setTextFormat(myTextField.defaultTextFormat);
            }    
        }    
    }
}</pre></div>
        </div></div><div class="detailSectionHeader"> Event Detail </div><a name="event:change"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">change</td><td class="detailHeaderType"> Event </td></tr></table><div class="detailBody"><span class="label">Event Object Type: </span><a href="../../flash/events/Event.html"><code>flash.events.Event</code></a><br/><span class="label">property Event.type  =  </span><a href="../../flash/events/Event.html#CHANGE"><code>flash.events.Event.CHANGE</code></a><br/><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>
          Dispatched after a control value is modified, unlike 
 the
          <code>textInput</code>
          event, which is dispatched before the value is modified. 
 Unlike the W3C DOM Event Model version of the
          <code>change</code>
          event, which dispatches the 
 event only after the control loses focus, the ActionScript 3.0 version of the
          <code>change</code>
          event is dispatched any time the control changes. For example, if a user 
 types text into a text field, a
          <code>change</code>
          event is dispatched after every keystroke.
        </p>
          The
          <code>Event.CHANGE</code>
          constant defines the value of the
          <code>type</code>
          property of a
          <code>change</code>
          event object.
          <p>This event has the following properties:</p>
          
          <table class="innertable" ><tr><th>Property</th><th>Value</th></tr><tr><td>
                    <code>bubbles</code>
                  </td><td>
                    <code>true</code>
                  </td></tr><tr><td>
                    <code>cancelable</code>
                  </td><td>
                    <code>false</code>
                    ; there is no default behavior to cancel.
                  </td></tr><tr><td>
                    <code>currentTarget</code>
                  </td><td>The object that is actively processing the Event 
 object with an event listener.</td></tr><tr><td>
                    <code>target</code>
                  </td><td>
                    The object that has had its value modified. 
 The
                    <code>target</code>
                    is not always the object in the display list 
 that registered the event listener. Use the
                    <code>currentTarget</code>
                    property to access the object in the display list that is currently processing the event.
                  </td></tr></table>
          
        <br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          In the following example, the text that the user enters (user input) is immediately copied
 (echoed) into another text field with a different text format.
          <p>
            Two text fields are created, one for the user input and the other
 (
            <code>headingTextField</code>
            ) for the copy of the user input. A TextFormat 
 object is also created and the default text format is assigned to the
            <code>headingTextField</code>
            text field. When the content of the text field 
 is changed, the
            <code>changeHandler()</code>
            method is invoked, which assigns 
 the text in the
            <code>inputTextField</code>
            text field to the
            <code>headingTextField</code>
            text field. (If the method was called for the
            <code>TextEvent.TEXT_INPUT</code>
            event
 instead of the
            <code>Event.CHANGE</code>
            event, the content of the user input 
 is copied only after the user has entered more text.)
          </p>
          
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFieldType;
    import flash.text.TextFormat;
    import flash.text.TextFormatAlign;
    import flash.events.Event;
    
    import flash.events.TextEvent;

    public class TextField_Event_changeExample extends Sprite {
        private var inputTextField:TextField = new TextField(); 
        private var headingTextField:TextField = new TextField(); 
        private var newFormat:TextFormat = new TextFormat();
         
        public function TextField_Event_changeExample() {
            headingTextField.x = 10;
            headingTextField.y = 10;
            headingTextField.height = 30;
            headingTextField.width = 400;
            headingTextField.background = true;
            headingTextField.backgroundColor = 0xF5F5DC;
            headingTextField.selectable = false;
 
            inputTextField.x = 10;
            inputTextField.y = 70;
            inputTextField.height = 20;
            inputTextField.width = 230;
            inputTextField.background = true;
            inputTextField.border = true;
            inputTextField.maxChars = 40;
            inputTextField.wordWrap = true;
            inputTextField.type = TextFieldType.INPUT;

            inputTextField.addEventListener(Event.CHANGE, changeHandler);

            newFormat.bold = true;
            newFormat.size = 18;
            newFormat.color = 0xFF0000;
            newFormat.align = TextFormatAlign.CENTER;

            headingTextField.defaultTextFormat = newFormat;

            this.addChild(inputTextField);
            this.addChild(headingTextField);
        }

        private function changeHandler(e:Event):void {
            headingTextField.text = inputTextField.text;
        }
    }
}</pre></div>
        </div></div><a name="event:link"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">link</td><td class="detailHeaderType"> Event </td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><span class="label">Event Object Type: </span><a href="../../flash/events/TextEvent.html"><code>flash.events.TextEvent</code></a><br/><span class="label">property TextEvent.type  =  </span><a href="../../flash/events/TextEvent.html#LINK"><code>flash.events.TextEvent.LINK</code></a><br/><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>
          Dispatched when a user clicks a hyperlink in an 
 HTML-enabled text field, where the URL begins with "event:". The remainder of the URL after 
 "event:" is placed in the text property of the LINK event.
          <p>
            <b>Note:</b>
            The default behavior, adding the text to the text field,
 occurs only when Flash Player generates the event, which in this case happens when
 a user attempts to input text. You cannot put text into a text field by sending it
            <code>textInput</code>
            events.
          </p>
          
        </p>
          Defines the value of the
          <code>type</code>
          property of a
          <code>link</code>
          event object.
          <p>This event has the following properties:</p>
          
          <table class="innertable" ><tr><th>Property</th><th>Value</th></tr><tr><td>
                    <code>bubbles</code>
                  </td><td>
                    <code>true</code>
                  </td></tr><tr><td>
                    <code>cancelable</code>
                  </td><td>
                    <code>false</code>
                    ; there is no default behavior to cancel.
                  </td></tr><tr><td>
                    <code>currentTarget</code>
                  </td><td>The object that is actively processing the Event 
  object with an event listener.</td></tr><tr><td>
                    <code>target</code>
                  </td><td>
                    The text field containing the hyperlink that has been clicked. 
    The
                    <code>target</code>
                    is not always the object in the display list 
  that registered the event listener. Use the
                    <code>currentTarget</code>
                    property to access the object in the display list that is currently processing the event.
                  </td></tr><tr><td>
                    <code>text</code>
                  </td><td>The remainder of the URL after "event:"</td></tr></table>
          
        <br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          In the following example, the
          <code>playMP3()</code>
          function is defined. 
 A TextField object named
          <code>list</code>
          is created and populated with HTML text. 
 The text
          <code>"Track 1"</code>
          and
          <code>"Track 2"</code>
          are links inside the text field. 
 The playMP3() function is called when the user clicks either link. The name of the MP3
 file, which follows the string "event:" in the
          <code>href</code>
          attribute of the 
 HTML tag, is passed to the
          <code>linkHandler()</code>
          method as the
          <code>text</code>
          property of the
          <code>link</code>
          event object.
          <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.errors.IOError;
    import flash.events.IOErrorEvent;
    import flash.events.TextEvent;
    import flash.media.Sound;
    import flash.media.SoundChannel;
    import flash.net.URLRequest;
    import flash.text.TextField;
    import flash.text.TextFieldAutoSize;

    public class TextField_event_link extends Sprite
    {
        private var myMP3:Sound;
        public function TextField_event_link() {
            myMP3 = new Sound();
            var list:TextField = new TextField();
            list.autoSize = TextFieldAutoSize.LEFT;
            list.multiline = true;
            list.htmlText = "&lt;a href=\"event:track1.mp3\"&gt;Track 1&lt;/a&gt;&lt;br&gt;";
            list.htmlText += "&lt;a href=\"event:track2.mp3\"&gt;Track 2&lt;/a&gt;&lt;br&gt;";
            addEventListener(TextEvent.LINK, linkHandler);
            addChild(list);
        }
        
        private function playMP3(mp3:String):void {
            try {    
                myMP3.load(new URLRequest(mp3));
                myMP3.play();
            }
            catch(err:Error) {
                trace(err.message);
            }
            myMP3.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
        }
        
        private function linkHandler(linkEvent:TextEvent):void {
            playMP3(linkEvent.text);
        }
        
        private function errorHandler(errorEvent:IOErrorEvent):void {
            trace(errorEvent.text);
        }
    }
}</pre></div>
        </div></div><a name="event:scroll"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">scroll</td><td class="detailHeaderType"> Event </td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><span class="label">Event Object Type: </span><a href="../../flash/events/Event.html"><code>flash.events.Event</code></a><br/><span class="label">property Event.type  =  </span><a href="../../flash/events/Event.html#SCROLL"><code>flash.events.Event.SCROLL</code></a><br/><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>
          Dispatched by a TextField object
          <i>after</i>
          the user scrolls.
        </p>
          The
          <code>Event.SCROLL</code>
          constant defines the value of the
          <code>type</code>
          property of a
          <code>scroll</code>
          event object.
          <p>This event has the following properties:</p>
          
          <table class="innertable" ><tr><th>Property</th><th>Value</th></tr><tr><td>
                    <code>bubbles</code>
                  </td><td>
                    <code>false</code>
                  </td></tr><tr><td>
                    <code>cancelable</code>
                  </td><td>
                    <code>false</code>
                    ; there is no default behavior to cancel.
                  </td></tr><tr><td>
                    <code>currentTarget</code>
                  </td><td>The object that is actively processing the Event 
 object with an event listener.</td></tr><tr><td>
                    <code>target</code>
                  </td><td>
                    The TextField object that has been scrolled. 
 The
                    <code>target</code>
                    property is not always the object in the display list 
 that registered the event listener. Use the
                    <code>currentTarget</code>
                    property to access the object in the display list that is currently processing the event.
                  </td></tr></table>
          
        <br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example defines two TextField objects. 
 The first TextField object has two associated event handlers. When you click the mouse 
 inside this first text field, the
          <code>mouseDown</code>
          event is dispatched, and the associated
          <code>mouseDownScroll</code>
          handler is called. The
          <code>mouseDownScroll()</code>
          handler causes the field to scroll. Then, the
          <code>scroll</code>
          event is dispatched, and the associated
          <code>scrollHandler()</code>
          handler updates the second text field to display the current scroll position.
          <div class="listing"><pre>package
{
    import flash.display.Sprite;
    import flash.text.*;
    import flash.events.Event;
    import flash.events.TextEvent;
    import flash.events.MouseEvent;

    public class TextScrollExample extends Sprite
    {
        private var myTextBox1:TextField = new TextField();
        private var myTextBox2:TextField = new TextField();
        private var myText:String = "Hello world and welcome to the show. It's really nice to meet you. Take your coat off and stay a while. OK, show is over. Hope you had fun. You can go home now. Don't forget to tip your waiter. There are mints in the bowl by the door. Thank you. Please come again.";

        public function TextScrollExample()
        {
            myTextBox1.text = myText;
            myTextBox1.width = 200;
            myTextBox1.height = 50;
            myTextBox1.multiline = true;
            myTextBox1.wordWrap = true;
            myTextBox1.background = true;
            myTextBox1.border = true;
            
            myTextBox2.x=220;
            myTextBox2.text="scrolled to line: " + myTextBox1.scrollV;

            addChild(myTextBox1);
            addChild(myTextBox2);
            myTextBox1.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownScroll);
            myTextBox1.addEventListener(Event.SCROLL, scrollHandler);
        }

        public function mouseDownScroll(event:MouseEvent):void
        {
            myTextBox1.scrollV++;
        }
        public function scrollHandler(event:Event):void
        {
           myTextBox2.text="scrolled to line: " + myTextBox1.scrollV;
        }
    }
}</pre></div>
        </div></div><a name="event:textInput"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">textInput</td><td class="detailHeaderType"> Event </td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><span class="label">Event Object Type: </span><a href="../../flash/events/TextEvent.html"><code>flash.events.TextEvent</code></a><br/><span class="label">property TextEvent.type  =  </span><a href="../../flash/events/TextEvent.html#TEXT_INPUT"><code>flash.events.TextEvent.TEXT_INPUT</code></a><br/><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>
          Flash Player dispatches the
          <code>textInput</code>
          event when a user enters one or more 
 characters of text. Various 
 text input methods can generate this event, including standard keyboards,
 input method editors (IMEs), voice or speech recognition systems, and even the act
 of pasting plain text with no formatting or style information.
        </p>
          Defines the value of the
          <code>type</code>
          property of a
          <code>textInput</code>
          event object.
          <p>This event has the following properties:</p>
          
          <table class="innertable" ><tr><th>Property</th><th>Value</th></tr><tr><td>
                    <code>bubbles</code>
                  </td><td>
                    <code>true</code>
                  </td></tr><tr><td>
                    <code>cancelable</code>
                  </td><td>
                    <code>true</code>
                    ; call the
                    <code>preventDefault()</code>
                    method 
  to cancel default behavior.
                  </td></tr><tr><td>
                    <code>currentTarget</code>
                  </td><td>The object that is actively processing the Event 
  object with an event listener.</td></tr><tr><td>
                    <code>target</code>
                  </td><td>
                    The text field into which characters are being entered. 
  The target is not always the object in the display list 
  that registered the event listener. Use the
                    <code>currentTarget</code>
                    property to access the object in the display list that is currently processing the event.
                  </td></tr><tr><td>
                    <code>text</code>
                  </td><td>The character or sequence of characters entered by the user.</td></tr></table>
          
        <br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example defines two TextField objects: 
 the first TextField object is an input text field, and the second TextField object
 is a dynamic text field. As you enter text characters in 
 the first text field, the
          <code>textInput</code>
          event is dispatched, the
          <code>textInputHandler()</code>
          handler is called, and the characters display in the second
 text field. When you paste a 
 block of text into the input field, the event handler copies the entire block 
 into the other field.
          <div class="listing"><pre>package
{
    import flash.display.Sprite;
    import flash.text.*;
    import flash.events.Event;
    import flash.events.TextEvent;
    import flash.events.MouseEvent;

    public class TextInputExample extends Sprite
    {
        private var myTextBox1:TextField = new TextField();
        private var myTextBox2:TextField = new TextField();

        public function TextInputExample()
        {
            myTextBox1.type = TextFieldType.INPUT;
            myTextBox1.width = 200;
            myTextBox1.height = 20;
            myTextBox1.background = true;
            myTextBox1.border = true;
            
            myTextBox2.x=220;

            addChild(myTextBox1);
            addChild(myTextBox2);
            myTextBox1.addEventListener(TextEvent.TEXT_INPUT,textInputHandler);
        }

        public function textInputHandler(event:TextEvent):void
        {
           myTextBox2.text=event.text;
        }
    }
}</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">TextFieldExample.as</div><br/><div class="detailBody">
        The following example uses the
        <code>TextFieldExample</code>
        class to 
 display a text message.  This is accomplished by using the following steps:
        <ol><li>
            A
            <code>label</code>
            property of type TextField is created.
          </li><li>
            The class constructor calls the
            <code>configureLabel()</code>
            function.
          </li><li>
            The
            <code>configureLabel()</code>
            method first creates a new TextField object and assigns it to
  the
            <code>label</code>
            property, and then sets its parameters to the following:
            <ul><li>Left-justify the text field.</li><li>Enable the background fill.</li><li>Enable the border.</li></ul>
            
          </li><li>
            The
            <code>configureLabel()</code>
            method creates the
            <code>format</code>
            variable  and assigns it to
  a new TextFormat instance with its parameters set to the following:
            <ul><li>Font type = Verdana</li><li>Font color = solid red</li><li>Font size = 10</li><li>Font underline = true</li></ul>
            
          </li><li>
            The
            <code>defaultTextFormat</code>
            property of the
            <code>label</code>
            text field 
  is set to
            <code>format</code>
            , and the
            <code>label</code>
            instance is added to the display list, 
  which initially displays a text field with no text on the stage.
          </li><li>
            The constructor sets the text of the
            <code>label</code>
            text field to
            <code>"Hello world and welcome to the show."</code>
            by calling the
            <code>setLabel()</code>
            method.
          </li></ol>
        
        <div class="listing"><pre>package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFieldAutoSize;
    import flash.text.TextFormat;


    public class TextFieldExample extends Sprite {
        private var label:TextField;
        private var labelText:String = "Hello world and welcome to the show.";

        public function TextFieldExample() {
            configureLabel();
            setLabel(labelText);
        }

        public function setLabel(str:String):void {
            label.text = str;
        }

        private function configureLabel():void {
            label = new TextField();
            label.autoSize = TextFieldAutoSize.LEFT;
            label.background = true;
            label.border = true;

            var format:TextFormat = new TextFormat();
            format.font = "Verdana";
            format.color = 0xFF0000;
            format.size = 10;
            format.underline = true;

            label.defaultTextFormat = format;
            addChild(label);
        }
    }
}</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">TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField TextField </div><div style="display:none">flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField flash.text.TextField </div></div></body></html><!-- &copy; 2004-2008 Adobe Systems Incorporated. All rights reserved. <br/>Thu Oct 30 2008, 07:08 PM -07:00  -->
