Packagecom.godpaper.as3.views.components.jewels
Classpublic class Jewel
InheritanceJewel Inheritance flash.display.Sprite
Subclasses Air, Earth, Fire, Water

Jewel.as class.For as3 sprite based component. Add it to starling overlay stage(flash.display.Sprite).



Public Properties
 PropertyDefined By
  playing : Boolean
Jewel
  size : int
Jewel
  visible : Boolean
[override] [write-only]
Jewel
Public Methods
 MethodDefined By
  
Jewel
  
generate(code:String):Jewel
[static]
Jewel
Protected Methods
 MethodDefined By
  
doUpdate(e:Event):void
Jewel
  
invalidate():void
Jewel
  
solid(s:Solid, colors:Array, glow:uint, size:int):void
Jewel
  
update():void
Jewel
Public Constants
 ConstantDefined By
  AIR : String = AIR
[static]
Jewel
  EARTH : String = EARTH
[static]
Jewel
  FIRE : String = FIRE
[static]
Jewel
  WATER : String = WATER
[static]
Jewel
Property Detail
playingproperty
playing:Boolean


Implementation
    public function get playing():Boolean
    public function set playing(value:Boolean):void
sizeproperty 
size:int


Implementation
    public function get size():int
    public function set size(value:int):void
visibleproperty 
visible:Boolean  [write-only] [override]


Implementation
    public function set visible(value:Boolean):void
Constructor Detail
Jewel()Constructor
public function Jewel()



Method Detail
doUpdate()method
protected function doUpdate(e:Event):void

Parameters

e:Event

generate()method 
public static function generate(code:String):Jewel

Parameters

code:String

Returns
Jewel
invalidate()method 
protected function invalidate():void

solid()method 
protected function solid(s:Solid, colors:Array, glow:uint, size:int):void

Parameters

s:Solid
 
colors:Array
 
glow:uint
 
size:int

update()method 
protected function update():void

Constant Detail
AIRConstant
public static const AIR:String = AIR

EARTHConstant 
public static const EARTH:String = EARTH

FIREConstant 
public static const FIRE:String = FIRE

WATERConstant 
public static const WATER:String = WATER