ActionScript Reference

com.bjc.ccs1

class BJCLed

mx.core.UIComponent
  |
  +--com.bjc.ccs1.BJCLed



class BJCLed
extends UIComponent

The BJC Led is a control component that indicates values by color and blinking.

Usage:
myBJCLed.setBlink( 0xff0000, 100 ); // Blinks in red color 10 times per second


Author:
Flashloaded - www.flashloaded.com

Version:
1.5.0


Constructor


BJCLed ( )
Constructor

Method Summary

public
setBlink ( color: Number, speed: Number ): Void
This method may be used set the led in blinking mode.

public
setColor ( color: Number ): Void
This method may be used to change the color of the led.

public
setOff ( ): Void
This method may be used to set the led off.

public
setOn ( color: Number ): Void
This method may be used to set the led on.



Constructor Documentation

BJCLed

function BJCLed()
Constructor


Method Documentation

setBlink

public function setBlink(color: Number,
speed: Number): Void
This method may be used set the led in blinking mode.

Usage:
myBJCLed.setBlink( 0xff0000, 100 );

Parameters:
color
A color value that indicates the color of the component.
speed
A number that indicates blinking speed in milliseconds. The smaller value indicates faster blinking speed.
Returns:
Nothing.

setColor

public function setColor(color: Number): Void
This method may be used to change the color of the led.

Usage:
myBJCLed.setColor( 0xff0000 );

Parameters:
color
A color value that indicates the color of the component.
Returns:
Nothing.

setOff

public function setOff(): Void
This method may be used to set the led off.

Usage:
myBJCLed.setOff();

Returns:
Nothing.

setOn

public function setOn(color: Number): Void
This method may be used to set the led on.

Usage:
myBJCLed.setOn( 0xff0000 );

Parameters:
color
A color value that indicates the color of the component.
Returns:
Nothing.