Packagekm.components
Classpublic class SpectrumAnalyzer
InheritanceSpectrumAnalyzer Inheritance UIComponent Inheritance flash.display.Sprite

The SpectrumAnalyzer component class is a spectrum analyzer.



Public Properties
 PropertyDefined by
  afterglow : Boolean
Gets or sets a Boolean value indicating if an afterglow effect should be used.
SpectrumAnalyzer
  barColor : uint
Gets or sets the ARGB color of the spectrum bars.
SpectrumAnalyzer
  data : Array
If mode = 0, the data array contains 9 values between 0 and 1 representing the output of the spectrum analyzer bars.
SpectrumAnalyzer
  data_left : Array
If mode > 0, the data_left array contains 16 values between 0 and 1 representing the left channel output of the spectrum analyzer bars.
SpectrumAnalyzer
  data_right : Array
If mode > 0, the data_right array contains 16 values between 0 and 1 representing the right channel output of the spectrum analyzer bars.
SpectrumAnalyzer
 Inheritedduotone : Array
The duotone property can be used to convert the colors of the component into duotone.
UIComponent
 Inheritedheight : Number
UIComponent
  mode : int
Gets or sets the analyzer mode
0 = 9 bar, 1 = 2 x 16 bar [mirrored], 2 = 2 x 16 bar.
SpectrumAnalyzer
  peakColor : uint
Gets or sets the ARGB peak color.
SpectrumAnalyzer
  solidBars : Boolean
Gets or sets a Boolean value indicating if the spectrum bars should be solid.
SpectrumAnalyzer
  swRatio : Number
Gets or sets the space between bars / bar width ratio.
SpectrumAnalyzer
 InheritedtoolTip : String
Text to use as toolTip when ToolTip is enabled.
UIComponent
 Inheritedwidth : Number
UIComponent
 Inheritedx : Number
UIComponent
 Inheritedy : Number
UIComponent
Public Methods
 MethodDefined by
  
SpectrumAnalyzer
 Inherited
move(x:int, y:int, animationMode:int = 0, animationFrames:int = 12, easeInOut:Boolean = false):void
Moves the component to the specified coordinates.
UIComponent
 Inherited
setProperties(o:Object):void
Sets a number of properties at once.
UIComponent
 Inherited
setSize(w:int, h:int):void
Sets the size width and height.
UIComponent
Events
 EventSummaryDefined by
 Inherited The animationComplete event is broadcasted when an animated move is completed.UIComponent
   The data event is broadcasted when new spectrum data has been calculated.SpectrumAnalyzer
Property detail
afterglowproperty
afterglow:Boolean  [read-write]

Gets or sets a Boolean value indicating if an afterglow effect should be used.

Implementation
    public function get afterglow():Boolean
    public function set afterglow(value:Boolean):void
barColorproperty 
barColor:uint  [read-write]

Gets or sets the ARGB color of the spectrum bars.

Implementation
    public function get barColor():uint
    public function set barColor(value:uint):void
dataproperty 
public var data:Array

If mode = 0, the data array contains 9 values between 0 and 1 representing the output of the spectrum analyzer bars.

data_leftproperty 
public var data_left:Array

If mode > 0, the data_left array contains 16 values between 0 and 1 representing the left channel output of the spectrum analyzer bars.

data_rightproperty 
public var data_right:Array

If mode > 0, the data_right array contains 16 values between 0 and 1 representing the right channel output of the spectrum analyzer bars.

modeproperty 
mode:int  [read-write]

Gets or sets the analyzer mode
0 = 9 bar, 1 = 2 x 16 bar [mirrored], 2 = 2 x 16 bar.

Implementation
    public function get mode():int
    public function set mode(value:int):void
peakColorproperty 
peakColor:uint  [read-write]

Gets or sets the ARGB peak color.

Implementation
    public function get peakColor():uint
    public function set peakColor(value:uint):void
solidBarsproperty 
solidBars:Boolean  [read-write]

Gets or sets a Boolean value indicating if the spectrum bars should be solid.

Implementation
    public function get solidBars():Boolean
    public function set solidBars(value:Boolean):void
swRatioproperty 
swRatio:Number  [read-write]

Gets or sets the space between bars / bar width ratio.

Implementation
    public function get swRatio():Number
    public function set swRatio(value:Number):void
Constructor detail
SpectrumAnalyzer()constructor
public function SpectrumAnalyzer()
Event detail
dataevent 
Event object type: flash.events.Event

The data event is broadcasted when new spectrum data has been calculated.