| Package | com.rubenswieringa |
| Class | public class HTMLStyle |
| Inheritance | HTMLStyle mx.core.UIComponent |
Default MXML Propertycontent
See also
| Property | Defined 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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
HTMLStyle(src:String = null)
Constructor.
| HTMLStyle | ||
| Event | Summary | Defined 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 | |||
| content | property |
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
| source | property |
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
| styleSheet | property |
public var styleSheet:StyleSheetThe 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.
| styleSheetName | property |
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
| HTMLStyle | () | constructor |
public function HTMLStyle(src:String = null)Constructor.
Parameterssrc: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)
|
| loaded | event |
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 fault | event |
mx.events.Event
Dispatched when there was an error while trying to load a CSS file.
See also
| parse error | event |
mx.events.Event
Dispatched when a parsing error occurs within CSSParser.
See also