Packagecom.eqsim.components
Classpublic class Lamp
InheritanceLamp Inheritance fl.core.UIComponent

This class implements a multi-state lamp (indicator) with attached graphics.

There is a default background supplied, but you can remove it by changing the background class name (bkgndClassName) to null (""). You create the various state graphics by supplying classNames with the class names of the various states, then set displayLamp to the index of the state graphic you want to display (0 for the first).

The class generates no events.



Public Properties
 PropertyDefined By
  bkgndClassName : String
Class name of the background movie clip.
Lamp
  classNames : Array
Array of strings representing the class names of the lamp movie clips.
Lamp
  displayLamp : int
Numeric index of the lamp graphic to display currently (starting at 0).
Lamp
Protected Properties
 PropertyDefined By
  _bkgndClassName : String = defLampAttachBkgnd
Lamp
  _classNames : Array
Lamp
  lampBkgnd : MovieClip
Lamp
  lampClips : Array
Lamp
  lampContainer : Sprite
Lamp
  _lampState : int
Lamp
  _prevLampState : int
Lamp
Public Methods
 MethodDefined By
  
Lamp
Protected Methods
 MethodDefined By
  
changeBkgndSkin(s:String):void
Lamp
  
changeSkins(a:Array):void
Lamp
  
configUI():void
[override] configUI Get the display objects created in preparation of launch.
Lamp
  
draw():void
[override]
Lamp
Property Detail
_bkgndClassNameproperty
protected var _bkgndClassName:String = defLampAttachBkgnd

_classNamesproperty 
protected var _classNames:Array

_lampStateproperty 
protected var _lampState:int

_prevLampStateproperty 
protected var _prevLampState:int

bkgndClassNameproperty 
bkgndClassName:String

Class name of the background movie clip. If you do not want a background clip, make this field empty.


Implementation
    public function get bkgndClassName():String
    public function set bkgndClassName(value:String):void
classNamesproperty 
classNames:Array

Array of strings representing the class names of the lamp movie clips.


Implementation
    public function get classNames():Array
    public function set classNames(value:Array):void
displayLampproperty 
displayLamp:int

Numeric index of the lamp graphic to display currently (starting at 0).


Implementation
    public function get displayLamp():int
    public function set displayLamp(value:int):void
lampBkgndproperty 
protected var lampBkgnd:MovieClip

lampClipsproperty 
protected var lampClips:Array

lampContainerproperty 
protected var lampContainer:Sprite

Constructor Detail
Lamp()Constructor
public function Lamp()

Method Detail
changeBkgndSkin()method
protected function changeBkgndSkin(s:String):void

Parameters

s:String

changeSkins()method 
protected function changeSkins(a:Array):void

Parameters

a:Array

configUI()method 
override protected function configUI():void

configUI Get the display objects created in preparation of launch. Note that we get called before our constructor, and before we are notified that we are on the stage!

draw()method 
override protected function draw():void