Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
The CSSUtils class is a collection of static functions that provide utility
features for managing CSS values.
public static var colorMap:Object
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
The map of color names to uints.
public static function attributeFromColor(value:uint):String
Parameters
Returns public static function getBottomValue(value:Object, values:Object, reference:Number):Number
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Computes paddingBottom or marginBottom.
Parameters
| value:Object — The value of padding-bottom or margin-bottom.
|
|
| values:Object — The value of padding or margin.
|
|
| reference:Number (default = NaN ) — A Number that will be used to convert percentages.
|
Returns public static function getLeftValue(value:Object, values:Object, reference:Number):Number
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Computes paddingLeft or marginLeft.
Parameters
| value:Object — The value of padding-left or margin-left.
|
|
| values:Object — The value of padding or margin.
|
|
| reference:Number (default = NaN ) — A Number that will be used to convert percentages.
|
Returns public static function getRightValue(value:Object, values:Object, reference:Number):Number
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Computes paddingRight or marginRight.
Parameters
| value:Object — The value of padding-right or margin-right.
|
|
| values:Object — The value of padding or margin.
|
|
| reference:Number (default = NaN ) — A Number that will be used to convert percentages.
|
Returns public static function getSideValue(value:Object, values:Object, side:int, reference:Number):Number
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Computes padding or margin.
Parameters
| value:Object — The value of padding or margin.
|
|
| values:Object — The value of padding or margin.
|
|
| side:int — Which side we want to get. 0 = top, 1 = right, 2 = bottom, 3 = left
|
|
| reference:Number (default = NaN ) — A Number that will be used to convert percentages.
|
Returns public static function getTopValue(value:Object, values:Object, reference:Number):Number
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Computes paddingTop or marginTop.
Parameters
| value:Object — The value of padding-top or margin-top.
|
|
| values:Object — The value of padding or margin.
|
|
| reference:Number (default = NaN ) — A Number that will be used to convert percentages.
|
Returns public static function toColor(value:Object):uint
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Converts a value describing a color to a uint
Parameters
| value:Object — The value.
|
Returns | uint — uint of the color.
|
public static function toColorWithAlpha(value:Object):uint
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Converts a value describing a color and alpha in a uint
Parameters
| value:Object — The value.
|
Returns | uint — uint of the color. If value is "transparent" then uint.MAX_VALUE is returned.
|
public static function toNumber(str:String, reference:Number = 0):Number
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Converts a String to number.
Parameters
| str:String — The String.
|
|
| reference:Number (default = 0 ) — A Number that will be used to convert percentages.
|
Returns
Mon Sep 5 2016, 07:19 AM -07:00