Package | com.eqsim.components |
Class | public class Lamp |
Inheritance | Lamp ![]() |
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.
Property | Defined 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 |
Property | Defined By | ||
---|---|---|---|
_bkgndClassName : String = defLampAttachBkgnd | Lamp | ||
_classNames : Array | Lamp | ||
lampBkgnd : MovieClip | Lamp | ||
lampClips : Array | Lamp | ||
lampContainer : Sprite | Lamp | ||
_lampState : int | Lamp | ||
_prevLampState : int | Lamp |
Method | Defined By | ||
---|---|---|---|
Lamp() | Lamp |
Method | Defined 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 |
_bkgndClassName | property |
protected var _bkgndClassName:String = defLampAttachBkgnd
_classNames | property |
protected var _classNames:Array
_lampState | property |
protected var _lampState:int
_prevLampState | property |
protected var _prevLampState:int
bkgndClassName | property |
bkgndClassName:String
Class name of the background movie clip. If you do not want a background clip, make this field empty.
public function get bkgndClassName():String
public function set bkgndClassName(value:String):void
classNames | property |
classNames:Array
Array of strings representing the class names of the lamp movie clips.
public function get classNames():Array
public function set classNames(value:Array):void
displayLamp | property |
displayLamp:int
Numeric index of the lamp graphic to display currently (starting at 0).
public function get displayLamp():int
public function set displayLamp(value:int):void
lampBkgnd | property |
protected var lampBkgnd:MovieClip
lampClips | property |
protected var lampClips:Array
lampContainer | property |
protected var lampContainer:Sprite
Lamp | () | Constructor |
public function Lamp()
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