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