Packageflexlib.controls.iconLoaderClasses
Classpublic class IcoParser
ImplementsIIconParser

A parser for the Windows .ico icon file. Currently supports only Windows XP style icons, where an 8 bit alpha mask is included with each image bitmap.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
Property detail
dataproperty
data:ByteArray  [read-write]

The raw data from the icon file.

Implementation
    public function get data():ByteArray
    public function set data(value:ByteArray):void
sizesproperty 
sizes:Array  [read-only]

The list of icon sizes in decreasing order.

Implementation
    public function get sizes():Array
validIconproperty 
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

Implementation
    public function get validIcon():Boolean
Constructor detail
IcoParser()constructor
public function IcoParser()

Constructor

Method detail
getIconForSize()method
public function getIconForSize(s:int):BitmapData

Returns an icon whose width does not exceed s.

Parameters
s:int

Returns
BitmapData
parse()method 
public function parse():void

Attempt to parse an icon file