Packagecom.florianplag
Classpublic class ColourLoversPalettes
InheritanceColourLoversPalettes Inheritance flash.display.Sprite

Flash class for the ColourLovers API. This class handles requests for palettes. You can load several sets of standard palettes (e.g. new, random, top) or search for specific palettes. The results are stored as palette objects in an array. By www.video-flash.de



Public Properties
 PropertyDefined by
  result : Array
Array with all the results (palette objects)
ColourLoversPalettes
Public Methods
 MethodDefined by
  
Constructor, inits the length of the result array with 0 (= not loaded yet / no results).
ColourLoversPalettes
  
length():Number
This function returns the number of palettes in the feed.
ColourLoversPalettes
  
loadPalette(number:int):void
This function loads a single palettes feed.
ColourLoversPalettes
  
This function loads a set of palettes.
ColourLoversPalettes
  
This function loads the NEW palettes feed.
ColourLoversPalettes
  
This function loads the RANDOM palettes feed.
ColourLoversPalettes
  
This function loads the TOP palettes feed.
ColourLoversPalettes
Property detail
resultproperty
public var result:Array

Array with all the results (palette objects)

Constructor detail
ColourLoversPalettes()constructor
public function ColourLoversPalettes()

Constructor, inits the length of the result array with 0 (= not loaded yet / no results).

Method detail
length()method
public function length():Number

This function returns the number of palettes in the feed. Only available after the feed loading is complete

Returns
Number — Returns 0 (no feed loaded yet / no results) or the number of the palettes
loadPalette()method 
public function loadPalette(number:int):void

This function loads a single palettes feed.

Parameters
number:int — An integer with a valid paletteID
loadPalettes()method 
public function loadPalettes(req:ColourLoversParameters = null):void

This function loads a set of palettes.

Parameters
req:ColourLoversParameters (default = null) — An optional filter object
loadPalettesNew()method 
public function loadPalettesNew(req:ColourLoversParameters = null):void

This function loads the NEW palettes feed.

Parameters
req:ColourLoversParameters (default = null) — An optional filter
loadPalettesRandom()method 
public function loadPalettesRandom():void

This function loads the RANDOM palettes feed.

loadPalettesTop()method 
public function loadPalettesTop(req:ColourLoversParameters = null):void

This function loads the TOP palettes feed.

Parameters
req:ColourLoversParameters (default = null) — An optional filter