Packageorg.ffilmation.engine.elements
Classpublic class fOmniLight
InheritancefOmniLight Inheritance fLight Inheritance fElement Inheritance flash.events.EventDispatcher

Spot light definition. Behaves as an Omni light in 3dMax. A point projecting light in all directions

Projects into planes as a circle

YOU CAN'T CREATE INSTANCES OF THIS ELEMENT DIRECTLY. Use scene.createOmniLight() to add new lights to a scene.

See also

org.ffilmation.engine.core.fScene.createOmniLight()


Public Properties
 PropertyDefined by
 Inheritedbump : Boolean
Determines if this light will be rendered with bumpmapping.
fLight
 Inheritedcontroller : fEngineElementController
Retrieves controller from this element
fElement
 InheritedcustomData : Object
As elements are not defined as "dynamic", this property can be used to store extra info about this element at run-time.
fElement
 Inheriteddecay : Number
From 0 to 100 marks the distance along the lights's radius from where intensity stars to fade.
fLight
 Inheritedhexcolor : uint
An hexdecimal number specifying the color of the light, example: 0xffeedd
fLight
 Inheritedid : String
The string identifier of this element.
fElement
 Inheritedintensity : Number
Intensity of the light goes from 0 to 100
fLight
 Inheritedsize : Number
Radius of the sphere that identifies the light, a value of 0 creates a light of Infinite size (ex: The Sun)
fLight
 Inheritedx : Number
X coordinate fot this element
fElement
 InheritedxmlObj : XML
This is the XML node from the scene XML that generated this element.
fElement
 Inheritedy : Number
Y coordinate for this element
fElement
 Inheritedz : Number
Z coordinate for this element
fElement
Public Methods
 MethodDefined by
 Inherited
distanceTo(x:Number, y:Number, z:Number):Number
Returns the distance of this element to the given coordinate
fElement
 Inherited
follow(target:fElement, elasticity:Number = 0):void
Makes element follow target element
fElement
 Inherited
moveTo(x:Number, y:Number, z:Number):void
Moves the element to a given position
fElement
 Inherited
render():void
Renders the light
fLight
 Inherited
stopFollowing(target:fElement):void
Stops element from following another element
fElement
Public Constants
 ConstantDefined by
 InheritedCOLORCHANGE : String = "lightcolorchange"
[static] The fLight.COLORCHANGE constant defines the value of the type property of the event object for a lightcolorchange event.
fLight
 InheritedDECAYCHANGE : String = "lightdecaychange"
[static] The fLight.DECAYCHANGE constant defines the value of the type property of the event object for a lightdecaychange event.
fLight
 InheritedINTENSITYCHANGE : String = "lightintensitychange"
[static] The fLight.INTENSITYCHANGE constant defines the value of the type property of the event object for a lightintensitychange event.
fLight
 InheritedMOVE : String = "elementmove"
[static] The fElement.MOVE constant defines the value of the type property of the event object for a elementmove event.
fElement
 InheritedNEWCELL : String = "elementnewcell"
[static] The fElement.NEWCELL constant defines the value of the type property of the event object for a elementnewcell event.
fElement
 InheritedRENDER : String = "lightrender"
[static] The fLight.RENDER constant defines the value of the type property of the event object for a lightrender event.
fLight
 InheritedSIZECHANGE : String = "lightsizechange"
[static] The fLight.SIZECHANGE constant defines the value of the type property of the event object for a lightsizechange event.
fLight