Packagecom.rubenswieringa
Classpublic class HTMLStyle
InheritanceHTMLStyle Inheritance mx.core.UIComponent

Provides functionality similar to that of the tag, only here for formatting htmlText. Note that the properties source and content are mutually exclusive, if both are provided, the URL in source will be processed.

Default MXML Propertycontent

See also



Public Properties
 PropertyDefined by
  content : String
The body content CSS.
HTMLStyle
  source : String
The provided source URL of a CSS file.
HTMLStyle
  styleSheet : StyleSheet
The StyleSheet generated with the CSS provided, this property is bindable.
HTMLStyle
  styleSheetName : String
[read-only] The identifier name used on the CSSLoader class for loading and/or parsing the provided style declarations.
HTMLStyle
Public Methods
 MethodDefined by
  
HTMLStyle(src:String = null)
Constructor.
HTMLStyle
Events
 EventSummaryDefined by
   Dispatched when a CSS file is loaded succesfully.HTMLStyle
   Dispatched when there was an error while trying to load a CSS file.HTMLStyle
   Dispatched when a parsing error occurs within CSSParser.HTMLStyle
Property detail
contentproperty
content:String  [read-write]

The body content CSS. Returns the value of source if provided.

Implementation
    public function get content():String
    public function set content(value:String):void

See also

sourceproperty 
source:String  [read-write]

The provided source URL of a CSS file.

Implementation
    public function get source():String
    public function set source(value:String):void
styleSheetproperty 
public var styleSheet:StyleSheet

The StyleSheet generated with the CSS provided, this property is bindable. Note that due to limitations of databinding in Flex, this property is officially not read-only. It is not intended, however, to be written.

This property can be used as the source for data binding.

styleSheetNameproperty 
styleSheetName:String  [read-only]

The identifier name used on the CSSLoader class for loading and/or parsing the provided style declarations.

Implementation
    public function get styleSheetName():String
Constructor detail
HTMLStyle()constructor
public function HTMLStyle(src:String = null)

Constructor.

Parameters
src:String (default = null) — String specifying the URL of a CSS file. Use this parameter when you want to use the HTMLStyle class in actionscript (instead of mxml)
Event detail
loadedevent 
Event object type: mx.events.Event

Dispatched when a CSS file is loaded succesfully. Note that this Event is only dispatched when an actual external file is loaded, and not when an empty String is passed to the source property, or when the content property is set.

load faultevent  
Event object type: mx.events.Event

Dispatched when there was an error while trying to load a CSS file.

See also

parse errorevent  
Event object type: mx.events.Event

Dispatched when a parsing error occurs within CSSParser.

See also