Method | Defined By | ||
---|---|---|---|
parseLength1(string:String):Number [static]
Parses a length. | Markup | ||
parseLength2(string:String, actualFontSize:Number):Number [static]
New method contributed by: Lubos Strapko
| Markup |
Constant | Defined By | ||
---|---|---|---|
CSS_KEY_BGCOLOR : String = background-color [static] | Markup | ||
CSS_KEY_BORDERCOLOR : String = border-color [static] | Markup | ||
CSS_KEY_BORDERWIDTH : String = border-width [static] | Markup | ||
CSS_KEY_BORDERWIDTHBOTTOM : String = border-bottom-width [static] | Markup | ||
CSS_KEY_BORDERWIDTHLEFT : String = border-left-width [static] | Markup | ||
CSS_KEY_BORDERWIDTHRIGHT : String = border-right-width [static] | Markup | ||
CSS_KEY_BORDERWIDTHTOP : String = border-top-width [static] | Markup | ||
CSS_KEY_COLOR : String = color [static] | Markup | ||
CSS_KEY_DISPLAY : String = display [static] | Markup | ||
CSS_KEY_FONTFAMILY : String = font-family [static] | Markup | ||
CSS_KEY_FONTSIZE : String = font-size [static] | Markup | ||
CSS_KEY_FONTSTYLE : String = font-style [static] | Markup | ||
CSS_KEY_FONTWEIGHT : String = font-weight [static] | Markup | ||
CSS_KEY_LINEHEIGHT : String = line-height [static] | Markup | ||
CSS_KEY_MARGIN : String = margin [static] | Markup | ||
CSS_KEY_MARGINBOTTOM : String = margin-bottom [static] | Markup | ||
CSS_KEY_MARGINLEFT : String = margin-left [static] | Markup | ||
CSS_KEY_MARGINRIGHT : String = margin-right [static] | Markup | ||
CSS_KEY_MARGINTOP : String = margin-top [static] | Markup | ||
CSS_KEY_PADDING : String = padding [static] | Markup | ||
CSS_KEY_PADDINGBOTTOM : String = padding-bottom [static] | Markup | ||
CSS_KEY_PADDINGLEFT : String = padding-left [static] | Markup | ||
CSS_KEY_PADDINGRIGHT : String = padding-right [static] | Markup | ||
CSS_KEY_PADDINGTOP : String = padding-top [static] | Markup | ||
CSS_KEY_PAGE_BREAK_AFTER : String = page-break-after [static] | Markup | ||
CSS_KEY_PAGE_BREAK_BEFORE : String = page-break-before [static] | Markup | ||
CSS_KEY_TEXTALIGN : String = text-align [static] | Markup | ||
CSS_KEY_TEXTDECORATION : String = text-decoration [static] | Markup | ||
CSS_KEY_VERTICALALIGN : String = vertical-align [static] | Markup | ||
CSS_KEY_VISIBILITY : String = visibility [static] | Markup | ||
CSS_VALUE_ALWAYS : String = always [static] | Markup | ||
CSS_VALUE_BLOCK : String = block [static] | Markup | ||
CSS_VALUE_BOLD : String = bold [static] | Markup | ||
CSS_VALUE_HIDDEN : String = hidden [static] | Markup | ||
CSS_VALUE_INLINE : String = inline [static] | Markup | ||
CSS_VALUE_ITALIC : String = italic [static] | Markup | ||
CSS_VALUE_LINETHROUGH : String = line-through [static] | Markup | ||
CSS_VALUE_LISTITEM : String = list-item [static] | Markup | ||
CSS_VALUE_NONE : String = none [static] | Markup | ||
CSS_VALUE_NORMAL : String = normal [static] | Markup | ||
CSS_VALUE_OBLIQUE : String = oblique [static] | Markup | ||
CSS_VALUE_TABLE : String = table [static] | Markup | ||
CSS_VALUE_TABLECELL : String = table-cell [static] | Markup | ||
CSS_VALUE_TABLEROW : String = table-row [static] | Markup | ||
CSS_VALUE_TEXTALIGNCENTER : String = center [static] | Markup | ||
CSS_VALUE_TEXTALIGNJUSTIFY : String = justify [static] | Markup | ||
CSS_VALUE_TEXTALIGNLEFT : String = left [static] | Markup | ||
CSS_VALUE_TEXTALIGNRIGHT : String = right [static] | Markup | ||
CSS_VALUE_UNDERLINE : String = underline [static] | Markup | ||
DEFAULT_FONT_SIZE : Number = 12 [static] | Markup | ||
HTML_ATTR_CSS_CLASS : String = class [static] | Markup | ||
HTML_ATTR_CSS_ID : String = id [static] | Markup | ||
HTML_ATTR_HEIGHT : String = height [static] | Markup | ||
HTML_ATTR_HREF : String = href [static] | Markup | ||
HTML_ATTR_REL : String = rel [static] | Markup | ||
HTML_ATTR_STYLE : String = style [static] | Markup | ||
HTML_ATTR_STYLESHEET : String = stylesheet [static] | Markup | ||
HTML_ATTR_TYPE : String = type [static] | Markup | ||
HTML_ATTR_WIDTH : String = width [static] | Markup | ||
HTML_TAG_BODY : String = body [static] | Markup | ||
HTML_TAG_DIV : String = div [static] | Markup | ||
HTML_TAG_LINK : String = link [static] | Markup | ||
HTML_TAG_SPAN : String = span [static] | Markup | ||
HTML_VALUE_CSS : String = text/css [static] | Markup | ||
HTML_VALUE_JAVASCRIPT : String = text/javascript [static] | Markup |
parseLength1 | () | method |
public static function parseLength1(string:String):Number
Parses a length.
Parameters
string:String — a length in the form of an optional + or -, followed by a
number and a unit.
|
Number — a float
|
parseLength2 | () | method |
public static function parseLength2(string:String, actualFontSize:Number):Number
Since : | 2.1.3 |
New method contributed by: Lubos Strapko
Parameters
string:String | |
actualFontSize:Number |
Number |
CSS_KEY_BGCOLOR | Constant |
public static const CSS_KEY_BGCOLOR:String = background-color
CSS_KEY_BORDERCOLOR | Constant |
public static const CSS_KEY_BORDERCOLOR:String = border-color
CSS_KEY_BORDERWIDTH | Constant |
public static const CSS_KEY_BORDERWIDTH:String = border-width
CSS_KEY_BORDERWIDTHBOTTOM | Constant |
public static const CSS_KEY_BORDERWIDTHBOTTOM:String = border-bottom-width
CSS_KEY_BORDERWIDTHLEFT | Constant |
public static const CSS_KEY_BORDERWIDTHLEFT:String = border-left-width
CSS_KEY_BORDERWIDTHRIGHT | Constant |
public static const CSS_KEY_BORDERWIDTHRIGHT:String = border-right-width
CSS_KEY_BORDERWIDTHTOP | Constant |
public static const CSS_KEY_BORDERWIDTHTOP:String = border-top-width
CSS_KEY_COLOR | Constant |
public static const CSS_KEY_COLOR:String = color
CSS_KEY_DISPLAY | Constant |
public static const CSS_KEY_DISPLAY:String = display
CSS_KEY_FONTFAMILY | Constant |
public static const CSS_KEY_FONTFAMILY:String = font-family
CSS_KEY_FONTSIZE | Constant |
public static const CSS_KEY_FONTSIZE:String = font-size
CSS_KEY_FONTSTYLE | Constant |
public static const CSS_KEY_FONTSTYLE:String = font-style
CSS_KEY_FONTWEIGHT | Constant |
public static const CSS_KEY_FONTWEIGHT:String = font-weight
CSS_KEY_LINEHEIGHT | Constant |
public static const CSS_KEY_LINEHEIGHT:String = line-height
CSS_KEY_MARGIN | Constant |
public static const CSS_KEY_MARGIN:String = margin
CSS_KEY_MARGINBOTTOM | Constant |
public static const CSS_KEY_MARGINBOTTOM:String = margin-bottom
CSS_KEY_MARGINLEFT | Constant |
public static const CSS_KEY_MARGINLEFT:String = margin-left
CSS_KEY_MARGINRIGHT | Constant |
public static const CSS_KEY_MARGINRIGHT:String = margin-right
CSS_KEY_MARGINTOP | Constant |
public static const CSS_KEY_MARGINTOP:String = margin-top
CSS_KEY_PADDING | Constant |
public static const CSS_KEY_PADDING:String = padding
CSS_KEY_PADDINGBOTTOM | Constant |
public static const CSS_KEY_PADDINGBOTTOM:String = padding-bottom
CSS_KEY_PADDINGLEFT | Constant |
public static const CSS_KEY_PADDINGLEFT:String = padding-left
CSS_KEY_PADDINGRIGHT | Constant |
public static const CSS_KEY_PADDINGRIGHT:String = padding-right
CSS_KEY_PADDINGTOP | Constant |
public static const CSS_KEY_PADDINGTOP:String = padding-top
CSS_KEY_PAGE_BREAK_AFTER | Constant |
public static const CSS_KEY_PAGE_BREAK_AFTER:String = page-break-after
CSS_KEY_PAGE_BREAK_BEFORE | Constant |
public static const CSS_KEY_PAGE_BREAK_BEFORE:String = page-break-before
CSS_KEY_TEXTALIGN | Constant |
public static const CSS_KEY_TEXTALIGN:String = text-align
CSS_KEY_TEXTDECORATION | Constant |
public static const CSS_KEY_TEXTDECORATION:String = text-decoration
CSS_KEY_VERTICALALIGN | Constant |
public static const CSS_KEY_VERTICALALIGN:String = vertical-align
CSS_KEY_VISIBILITY | Constant |
public static const CSS_KEY_VISIBILITY:String = visibility
CSS_VALUE_ALWAYS | Constant |
public static const CSS_VALUE_ALWAYS:String = always
CSS_VALUE_BLOCK | Constant |
public static const CSS_VALUE_BLOCK:String = block
CSS_VALUE_BOLD | Constant |
public static const CSS_VALUE_BOLD:String = bold
CSS_VALUE_HIDDEN | Constant |
public static const CSS_VALUE_HIDDEN:String = hidden
CSS_VALUE_INLINE | Constant |
public static const CSS_VALUE_INLINE:String = inline
CSS_VALUE_ITALIC | Constant |
public static const CSS_VALUE_ITALIC:String = italic
CSS_VALUE_LINETHROUGH | Constant |
public static const CSS_VALUE_LINETHROUGH:String = line-through
CSS_VALUE_LISTITEM | Constant |
public static const CSS_VALUE_LISTITEM:String = list-item
CSS_VALUE_NONE | Constant |
public static const CSS_VALUE_NONE:String = none
CSS_VALUE_NORMAL | Constant |
public static const CSS_VALUE_NORMAL:String = normal
CSS_VALUE_OBLIQUE | Constant |
public static const CSS_VALUE_OBLIQUE:String = oblique
CSS_VALUE_TABLE | Constant |
public static const CSS_VALUE_TABLE:String = table
CSS_VALUE_TABLECELL | Constant |
public static const CSS_VALUE_TABLECELL:String = table-cell
CSS_VALUE_TABLEROW | Constant |
public static const CSS_VALUE_TABLEROW:String = table-row
CSS_VALUE_TEXTALIGNCENTER | Constant |
public static const CSS_VALUE_TEXTALIGNCENTER:String = center
CSS_VALUE_TEXTALIGNJUSTIFY | Constant |
public static const CSS_VALUE_TEXTALIGNJUSTIFY:String = justify
CSS_VALUE_TEXTALIGNLEFT | Constant |
public static const CSS_VALUE_TEXTALIGNLEFT:String = left
CSS_VALUE_TEXTALIGNRIGHT | Constant |
public static const CSS_VALUE_TEXTALIGNRIGHT:String = right
CSS_VALUE_UNDERLINE | Constant |
public static const CSS_VALUE_UNDERLINE:String = underline
DEFAULT_FONT_SIZE | Constant |
public static const DEFAULT_FONT_SIZE:Number = 12
HTML_ATTR_CSS_CLASS | Constant |
public static const HTML_ATTR_CSS_CLASS:String = class
HTML_ATTR_CSS_ID | Constant |
public static const HTML_ATTR_CSS_ID:String = id
HTML_ATTR_HEIGHT | Constant |
public static const HTML_ATTR_HEIGHT:String = height
HTML_ATTR_HREF | Constant |
public static const HTML_ATTR_HREF:String = href
HTML_ATTR_REL | Constant |
public static const HTML_ATTR_REL:String = rel
HTML_ATTR_STYLE | Constant |
public static const HTML_ATTR_STYLE:String = style
HTML_ATTR_STYLESHEET | Constant |
public static const HTML_ATTR_STYLESHEET:String = stylesheet
HTML_ATTR_TYPE | Constant |
public static const HTML_ATTR_TYPE:String = type
HTML_ATTR_WIDTH | Constant |
public static const HTML_ATTR_WIDTH:String = width
HTML_TAG_BODY | Constant |
public static const HTML_TAG_BODY:String = body
HTML_TAG_DIV | Constant |
public static const HTML_TAG_DIV:String = div
HTML_TAG_LINK | Constant |
public static const HTML_TAG_LINK:String = link
HTML_TAG_SPAN | Constant |
public static const HTML_TAG_SPAN:String = span
HTML_VALUE_CSS | Constant |
public static const HTML_VALUE_CSS:String = text/css
HTML_VALUE_JAVASCRIPT | Constant |
public static const HTML_VALUE_JAVASCRIPT:String = text/javascript