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
Assigns a controller to this element
fElement
 Inheriteddecay : Number
From 0 to 100 marks the distance along the lights's radius from where intensity stars to fade.
fLight
 Inheritedhexcolor : Number
An string specifying the color of the light in HTML format, example: #ffeedd
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
fLight
 Inheritedx : Number
X coordinate fot 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
setIntensity(percent:Number):void
This method changes the light's intensity
fLight
 Inherited
stopFollowing(target:fElement):void
Stops element from following another element
fElement
Public Constants
 ConstantDefined by
 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