| Package | km.components |
| Class | public class SpectrumAnalyzer |
| Inheritance | SpectrumAnalyzer UIComponent flash.display.Sprite |
| Property | Defined 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 | ||
![]() | duotone : Array The duotone property can be used to convert the colors of the component into duotone.
| UIComponent | |
![]() | height : 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 | ||
![]() | toolTip : String Text to use as toolTip when ToolTip is enabled.
| UIComponent | |
![]() | width : Number | UIComponent | |
![]() | x : Number | UIComponent | |
![]() | y : Number | UIComponent | |
| Method | Defined by | ||
|---|---|---|---|
| SpectrumAnalyzer | |||
![]() |
move(x:int, y:int, animationMode:int = 0, animationFrames:int = 12, easeInOut:Boolean = false):void
Moves the component to the specified coordinates.
| UIComponent | |
![]() |
setProperties(o:Object):void
Sets a number of properties at once.
| UIComponent | |
![]() |
setSize(w:int, h:int):void
Sets the size width and height.
| UIComponent | |
| Event | Summary | Defined by | ||
|---|---|---|---|---|
![]() | 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 | |||
| afterglow | property |
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
| barColor | property |
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
| data | property |
public var data:ArrayIf mode = 0, the data array contains 9 values between 0 and 1 representing the output of the spectrum analyzer bars.
| data_left | property |
public var data_left:ArrayIf mode > 0, the data_left array contains 16 values between 0 and 1 representing the left channel output of the spectrum analyzer bars.
| data_right | property |
public var data_right:ArrayIf mode > 0, the data_right array contains 16 values between 0 and 1 representing the right channel output of the spectrum analyzer bars.
| mode | property |
mode:int [read-write] Gets or sets the analyzer mode
0 = 9 bar, 1 = 2 x 16 bar [mirrored], 2 = 2 x 16 bar.
public function get mode():int
public function set mode(value:int):void
| peakColor | property |
peakColor:uint [read-write]Gets or sets the ARGB peak color.
Implementation public function get peakColor():uint
public function set peakColor(value:uint):void
| solidBars | property |
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
| swRatio | property |
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
| SpectrumAnalyzer | () | constructor |
public function SpectrumAnalyzer()
| data | event |
flash.events.Event
The data event is broadcasted when new spectrum data has been calculated.