| Language Version : | ActionScript 3.0 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
Represents a condition for a CSSSelector which is used to match a subset of
components based on a particular property.
kind:String [read-only]
| Language Version : | ActionScript 3.0 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
The kind of condition this instance represents. Options are class,
id and pseudo.
Implementation public function get kind():StringSee also
specificity:int [read-only]
| Language Version : | ActionScript 3.0 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
Calculates the specificity of a conditional selector in a selector
chain. The total specificity is used to determine the precedence when
applying several matching style declarations. id conditions contribute
100 points, pseudo and class conditions each contribute 10 points.
Selectors with a higher specificity override selectors of lower
specificity. If selectors have equal specificity, the declaration order
determines the precedence (i.e. the last one wins).
Implementation public function get specificity():intvalue:String [read-only]
| Language Version : | ActionScript 3.0 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
The value of this condition without any CSS syntax. To get a String
representation that includes CSS syntax, call the toString() method.
Implementation public function get value():Stringpublic function CSSCondition(kind:String, value:String)| Language Version : | ActionScript 3.0 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
Constructor.
Parameters | kind:String — The kind of condition. For valid values see the
CSSConditionKind enumeration.
|
| |
| value:String — The condition value (without CSS syntax).
|
public function matchesStyleClient(object:IAdvancedStyleClient):Boolean| Language Version : | ActionScript 3.0 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
Determines whether this condition matches the given component.
Parameters
Returns | Boolean — true if component is a match, otherwise false.
|
public function toString():String| Language Version : | ActionScript 3.0 |
| Runtime Versions : | Flash Player 10, AIR 1.5 |
Returns a String representation of this condition.
Returns | String — A String representation of this condition, including CSS syntax.
|
Mon Dec 24 2012, 01:18 PM +11:00