| Package | flexlib.controls.iconLoaderClasses |
| Class | public class IcoParser |
| Inheritance | IcoParser Object |
| Implements | IIconParser |
| Property | Defined By | ||
|---|---|---|---|
| data : ByteArray
The raw data from the icon file. | IcoParser | ||
| sizes : Array [read-only]
The list of icon sizes in decreasing order. | IcoParser | ||
| validIcon : Boolean [read-only]
Indicates that this parser contains valid icon data. | IcoParser | ||
| Method | Defined By | ||
|---|---|---|---|
Constructor
| IcoParser | ||
getIconForSize(s:int):BitmapData
Returns an icon whose width does not exceed s. | IcoParser | ||
parse():void
Attempt to parse an icon file
| IcoParser | ||
| data | property |
data:ByteArrayThe raw data from the icon file.
public function get data():ByteArray public function set data(value:ByteArray):void| sizes | property |
sizes:Array [read-only] The list of icon sizes in decreasing order.
public function get sizes():Array| validIcon | property |
validIcon:Boolean [read-only] Indicates that this parser contains valid icon data. <p>Implementations should return <codeph>true</codeph> if an icon file has been parsed successfully, and it contains at least one valid icon</p>
public function get validIcon():Boolean| IcoParser | () | Constructor |
public function IcoParser()Constructor
| getIconForSize | () | method |
public function getIconForSize(s:int):BitmapDataReturns an icon whose width does not exceed <codeph>s</codeph>.
Parameters
s:int |
BitmapData |
| parse | () | method |
public function parse():voidAttempt to parse an icon file