| <!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"><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="IStyleManager2,mx.styles.IStyleManager2,CLASS,ID,NOT_A_COLOR,NO_UNIT,PSEUDO,UNIT_CM,UNIT_DP,UNIT_INCH,UNIT_PT,ancestor,className,className,className,conditions,defaultFactory,factory,filterMap,id,id,id,inheritingStyles,inheritingStyles,inheritingStyles,kind,major,minor,moduleFactory,nonInheritingStyles,nonInheritingStyles,nonInheritingStyles,overrides,parent,pixelValue,revision,selector,selectorIndex,selectors,selectors,source,specificity,specificity,specificity,styleDeclaration,styleDeclaration,styleDeclaration,styleManager,styleName,styleName,styleName,styleParent,styleParent,styleParent,subject,subject,unit,value,value,clearStyle,clearStyle,clearStyle,clearStyle,clearStyleDeclaration,clearStyleDeclaration,compareTo,compareTo,getClassStyleDeclarations,getClassStyleDeclarations,getClassStyleDeclarations,getColorName,getColorName,getColorNames,getColorNames,getMergedStyleDeclaration,getStyle,getStyle,getStyle,getStyle,getStyleDeclaration,getStyleDeclaration,getStyleManager,hasCSSState,hasCSSState,hasCSSState,initialized,isColorName,isColorName,isInheritingStyle,isInheritingStyle,isInheritingTextFormatStyle,isInheritingTextFormatStyle,isParentDisplayListInvalidatingStyle,isParentDisplayListInvalidatingStyle,isParentSizeInvalidatingStyle,isParentSizeInvalidatingStyle,isSizeInvalidatingStyle,isSizeInvalidatingStyle,isValidStyleValue,isValidStyleValue,loadStyleDeclarations,loadStyleDeclarations,matchesCSSState,matchesCSSState,matchesCSSState,matchesCSSType,matchesCSSType,matchesCSSType,matchesStyleClient,matchesStyleClient,matchesStyleClient,notifyStyleChangeInChildren,notifyStyleChangeInChildren,notifyStyleChangeInChildren,regenerateStyleCache,regenerateStyleCache,regenerateStyleCache,registerColorName,registerColorName,registerEffects,registerEffects,registerEffects,registerInheritingStyle,registerInheritingStyle,registerParentDisplayListInvalidatingStyle,registerParentDisplayListInvalidatingStyle,registerParentSizeInvalidatingStyle,registerParentSizeInvalidatingStyle,registerSizeInvalidatingStyle,registerSizeInvalidatingStyle,setDeferredStyles,setStyle,setStyle,setStyle,setStyle,setStyleDeclaration,setStyleDeclaration,setStyleDeclarations,styleChanged,styleChanged,styleChanged,stylesInitialized,stylesInitialized,stylesInitialized,toString,toString,toString,toString,unload,unloadStyleDeclarations,unloadStyleDeclarations"><title>mx.styles.IStyleManager2</title></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 = 'IStyleManager2 - ApacheFlex API Reference'; |
| var baseRef = '../../'; |
| window.onload = configPage; |
| --></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">Apache Flex 4.16.1 API Reference </td><td class="titleTableTopNav" align="right"><a href="../../package-summary.html" onclick="loadClassListFrame('../../all-classes.html')">All Packages</a> | <a href="../../class-summary.html" onclick="loadClassListFrame('../../all-classes.html')">All Classes</a> | <a href="../../all-index-A.html" onclick="loadClassListFrame('../../index-list.html')">Index</a> | <a id="framesLink1" href="../../index.html?mx/styles/IStyleManager2.html&mx/styles/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="AdobeLogo" title="AdobeLogo"></td></tr><tr class="titleTableRow2"><td class="titleTableSubTitle" id="subTitle" align="left">IStyleManager2</td><td class="titleTableSubNav" id="subNav" align="right"><a href="#propertySummary">Properties</a> | <a href="#methodSummary">Methods</a></td></tr><tr class="titleTableRow3"><td colspan="3"> </td></tr></table><script language="javascript" type="text/javascript" xml:space="preserve"> |
| <!-- |
| |
| if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("IStyleManager2"); titleBar_setSubNav(false,true,false,false,false,false,false,false,true,false,false ,false,false,false,false,false);} |
| --> |
| </script><div xmlns:fn="http://www.w3.org/2005/xpath-functions" 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')">mx.styles</a></td></tr><tr><td class="classHeaderTableLabel">Interface</td><td class="classSignature">public interface IStyleManager2 extends <a href="../../mx/styles/IStyleManager.html">IStyleManager</a></td></tr></table><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </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> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p></p><p></p> |
| The IStyleManager2 class manages the following: |
| <ul> |
| <li>Which CSS style properties the class inherits</li> |
| <li>Which style properties are colors, and therefore get special handling</li> |
| <li>A list of strings that are aliases for color values</li> |
| </ul> |
| <p></p><p><span class="classHeaderTableLabel">See also</span></p><div class="seeAlso"><a href="CSSStyleDeclaration.html" target="">mx.styles.CSSStyleDeclaration</a></div><br/><hr></div><a name="propertySummary"></a><div class="summarySection"><div class="summaryTableTitle">Public Properties</div><table cellspacing="0" cellpadding="3" class="summaryTable " id="summaryTableProperty"><tr><th> </th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined By</th></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a href="#parent" class="signatureLink">parent</a> : <a href="../../mx/styles/IStyleManager2.html">IStyleManager2</a><div class="summaryTableDescription">[read-only] |
| The style manager that is the parent of this StyleManager.</div></td><td class="summaryTableOwnerCol">IStyleManager2</td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a href="#selectors" class="signatureLink">selectors</a> : Array<div class="summaryTableDescription">[read-only] |
| Returns an Array of all the CSS selectors that are registered with the StyleManager.</div></td><td class="summaryTableOwnerCol">IStyleManager2</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> </th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined By</th></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/styles/IStyleManager.html#clearStyleDeclaration()" class="signatureLink">clearStyleDeclaration</a>(selector:String, update:Boolean):void</div><div class="summaryTableDescription"> |
| Clears the CSSStyleDeclaration object that stores the rules |
| for the specified CSS selector.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/styles/IStyleManager.html">IStyleManager</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/styles/IStyleManager.html#getColorName()" class="signatureLink">getColorName</a>(colorName:Object):uint</div><div class="summaryTableDescription"> |
| Returns the numeric RGB color value that corresponds to the |
| specified color string.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/styles/IStyleManager.html">IStyleManager</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/styles/IStyleManager.html#getColorNames()" class="signatureLink">getColorNames</a>(colors:Array):void</div><div class="summaryTableDescription"> |
| Converts each element of the colors Array from a color name |
| to a numeric RGB color value.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/styles/IStyleManager.html">IStyleManager</a></td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getMergedStyleDeclaration()" class="signatureLink">getMergedStyleDeclaration</a>(selector:String):<a href="../../mx/styles/CSSStyleDeclaration.html">CSSStyleDeclaration</a></div><div class="summaryTableDescription"> |
| Gets a CSSStyleDeclaration object that stores the rules |
| for the specified CSS selector.</div></td><td class="summaryTableOwnerCol">IStyleManager2</td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/styles/IStyleManager.html#getStyleDeclaration()" class="signatureLink">getStyleDeclaration</a>(selector:String):<a href="../../mx/styles/CSSStyleDeclaration.html">CSSStyleDeclaration</a></div><div class="summaryTableDescription"> |
| Gets the CSSStyleDeclaration object that stores the rules |
| for the specified CSS selector.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/styles/IStyleManager.html">IStyleManager</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/styles/IStyleManager.html#isColorName()" class="signatureLink">isColorName</a>(colorName:String):Boolean</div><div class="summaryTableDescription"> |
| Tests to see if the given String is an alias for a color value.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/styles/IStyleManager.html">IStyleManager</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/styles/IStyleManager.html#isInheritingStyle()" class="signatureLink">isInheritingStyle</a>(styleName:String):Boolean</div><div class="summaryTableDescription"> |
| Tests to see if a style is inheriting.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/styles/IStyleManager.html">IStyleManager</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/styles/IStyleManager.html#isInheritingTextFormatStyle()" class="signatureLink">isInheritingTextFormatStyle</a>(styleName:String):Boolean</div><div class="summaryTableDescription"> |
| Test to see if a TextFormat style is inheriting.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/styles/IStyleManager.html">IStyleManager</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/styles/IStyleManager.html#isParentDisplayListInvalidatingStyle()" class="signatureLink">isParentDisplayListInvalidatingStyle</a>(styleName:String):Boolean</div><div class="summaryTableDescription"> |
| Tests to see if this style affects the component's parent container in |
| such a way as to require that the parent container redraws itself when this style changes.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/styles/IStyleManager.html">IStyleManager</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/styles/IStyleManager.html#isParentSizeInvalidatingStyle()" class="signatureLink">isParentSizeInvalidatingStyle</a>(styleName:String):Boolean</div><div class="summaryTableDescription"> |
| Tests to see if the style changes the size of the component's parent container.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/styles/IStyleManager.html">IStyleManager</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/styles/IStyleManager.html#isSizeInvalidatingStyle()" class="signatureLink">isSizeInvalidatingStyle</a>(styleName:String):Boolean</div><div class="summaryTableDescription"> |
| Tests to see if a style changes the size of a component.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/styles/IStyleManager.html">IStyleManager</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/styles/IStyleManager.html#isValidStyleValue()" class="signatureLink">isValidStyleValue</a>(value:*):Boolean</div><div class="summaryTableDescription"> |
| Determines if a specified parameter is a valid style property.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/styles/IStyleManager.html">IStyleManager</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/styles/IStyleManager.html#loadStyleDeclarations()" class="signatureLink">loadStyleDeclarations</a>(url:String, update:Boolean = true, trustContent:Boolean = false, applicationDomain:ApplicationDomain = null, securityDomain:SecurityDomain = null):IEventDispatcher</div><div class="summaryTableDescription"> |
| Loads a style SWF.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/styles/IStyleManager.html">IStyleManager</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/styles/IStyleManager.html#registerColorName()" class="signatureLink">registerColorName</a>(colorName:String, colorValue:uint):void</div><div class="summaryTableDescription"> |
| Adds a color name to the list of aliases for colors.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/styles/IStyleManager.html">IStyleManager</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/styles/IStyleManager.html#registerInheritingStyle()" class="signatureLink">registerInheritingStyle</a>(styleName:String):void</div><div class="summaryTableDescription"> |
| Adds to the list of styles that can inherit values |
| from their parents.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/styles/IStyleManager.html">IStyleManager</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/styles/IStyleManager.html#registerParentDisplayListInvalidatingStyle()" class="signatureLink">registerParentDisplayListInvalidatingStyle</a>(styleName:String):void</div><div class="summaryTableDescription"> |
| Adds to the list of styles which may affect the appearance |
| or layout of the component's parent container.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/styles/IStyleManager.html">IStyleManager</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/styles/IStyleManager.html#registerParentSizeInvalidatingStyle()" class="signatureLink">registerParentSizeInvalidatingStyle</a>(styleName:String):void</div><div class="summaryTableDescription"> |
| Adds to the list of styles which may affect the measured size |
| of the component's parent container.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/styles/IStyleManager.html">IStyleManager</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/styles/IStyleManager.html#registerSizeInvalidatingStyle()" class="signatureLink">registerSizeInvalidatingStyle</a>(styleName:String):void</div><div class="summaryTableDescription"> |
| Adds to the list of styles which may affect the measured size |
| of the component.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/styles/IStyleManager.html">IStyleManager</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/styles/IStyleManager.html#setStyleDeclaration()" class="signatureLink">setStyleDeclaration</a>(selector:String, styleDeclaration:<a href="../../mx/styles/CSSStyleDeclaration.html">CSSStyleDeclaration</a>, update:Boolean):void</div><div class="summaryTableDescription"> |
| Sets the CSSStyleDeclaration object that stores the rules |
| for the specified CSS selector.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/styles/IStyleManager.html">IStyleManager</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"><img src="../../images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="../../mx/styles/IStyleManager.html#unloadStyleDeclarations()" class="signatureLink">unloadStyleDeclarations</a>(url:String, update:Boolean = true):void</div><div class="summaryTableDescription"> |
| Unloads a style SWF.</div></td><td class="summaryTableOwnerCol"><a href="../../mx/styles/IStyleManager.html">IStyleManager</a></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="parent"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">parent</td><td class="detailHeaderType">property</td></tr></table><div class="detailBody"><code>parent:<a href="../../mx/styles/IStyleManager2.html">IStyleManager2</a></code> [read-only] <p></p><p></p><p> |
| The style manager that is the parent of this StyleManager. |
| |
| </p><br/><span class="label"> Implementation </span><br/><code> public function get parent():<a href="../../mx/styles/IStyleManager2.html">IStyleManager2</a></code><br/></div><a name="propertyDetail"></a><a name="selectors"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">selectors</td><td class="detailHeaderType">property</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code>selectors:Array</code> [read-only] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </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> Product Version : </b></td><td>Flex 3</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 9, AIR 1.1</td></tr></table><p></p><p></p><p> |
| Returns an Array of all the CSS selectors that are registered with the StyleManager. |
| You can pass items in this Array to the <code>getStyleDeclaration()</code> method to get the corresponding CSSStyleDeclaration object. |
| Class selectors are prepended with a period. |
| |
| </p><br/><span class="label"> Implementation </span><br/><code> public function get selectors():Array</code><br/></div><a name="methodDetail"></a><div class="detailSectionHeader">Method Detail</div><a name="getMergedStyleDeclaration()"></a><a name="getMergedStyleDeclaration(String)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getMergedStyleDeclaration</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td></tr></table><div class="detailBody"><code> public function getMergedStyleDeclaration(selector:String):<a href="../../mx/styles/CSSStyleDeclaration.html">CSSStyleDeclaration</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </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> Product Version : </b></td><td>Flex 4</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p> |
| Gets a CSSStyleDeclaration object that stores the rules |
| for the specified CSS selector. The CSSStyleDeclaration object is |
| created by merging the properties of the specified CSS selector in |
| this style manager with the properties of any parent style managers. |
| |
| <p>If the <code>selector</code> parameter starts with a period (.), |
| the returned CSSStyleDeclaration is a class selector and applies only to those instances |
| whose <code>styleName</code> property specifies that selector |
| (not including the period). |
| For example, the class selector <code>".bigMargins"</code> |
| applies to any UIComponent whose <code>styleName</code> |
| is <code>"bigMargins"</code>.</p> |
| |
| <p>If the <code>selector</code> parameter does not start with a period, |
| the returned CSSStyleDeclaration is a type selector and applies to all instances |
| of that type. |
| For example, the type selector <code>"Button"</code> |
| applies to all instances of Button and its subclasses.</p> |
| |
| <p>The <code>global</code> selector is similar to a type selector |
| and does not start with a period.</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">selector</span>:String</code> — The name of the CSS selector. |
| |
| </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="../../mx/styles/CSSStyleDeclaration.html">CSSStyleDeclaration</a></code> — The style declaration whose name matches the <code>selector</code> property. |
| |
| </td></tr></table></div><br/><br/><hr><br/><p></p><center class="copyright"><footer>The Apache Software Foundation</footer><br/>Wed Nov 15 2017, 09:50 AM +01:00 </center></div></body></html><!--The Apache Software Foundation<br/>Wed Nov 15 2017, 09:50 AM +01:00 --> |