| Package | org.ffilmation.engine.core |
| Class | public class fRenderableElement |
| Inheritance | fRenderableElement fElement flash.events.EventDispatcher |
| Subclasses | fObject, fPlane |
The fRenderableElement class defines the basic interface for visible elements in your scene.
Lights are NOT considered visible elements, therefore don't inherit from fRenderableElement
YOU CAN'T CREATE INSTANCES OF THIS OBJECT
| Property | Defined by | ||
|---|---|---|---|
| castShadows : Boolean = true
Boolean value indicating if this object casts shadows.
| fRenderableElement | ||
| flashClip : MovieClip
A reference to the library movieclip that was attached to create the element, so you
can acces methods inside, nested clips or whatever
| fRenderableElement | ||
![]() | id : String
The string identifier of this element.
| fElement | |
| receiveLights : Boolean = true
Boolean value indicating if this object receives lighting.
| fRenderableElement | ||
| receiveShadows : Boolean = true
Boolean value indicating if this object receives shadows.
| fRenderableElement | ||
| solid : Boolean = true
Boolean value indicating if this object collides with others.
| fRenderableElement | ||
![]() | x : Number
X coordinate fot this element
| fElement | |
![]() | y : Number
Y coordinate for this element
| fElement | |
![]() | z : Number
Z coordinate for this element
| fElement | |
| Property | Defined by | ||
|---|---|---|---|
| containerParent : DisplayObjectContainer | fRenderableElement | ||
| Method | Defined by | ||
|---|---|---|---|
|
call(what:String, param:* = null):void
Calls a function of the base clip
| fRenderableElement | ||
![]() |
distanceTo(x:Number, y:Number, z:Number):Number
Returns the distance of this element to the given coordinate
| fElement | |
![]() |
Makes element follow target element
| fElement | |
|
gotoAndPlay(where:*):void
Passes the stardard gotoAndPLay command to the base clip of this element
| fRenderableElement | ||
|
gotoAndStop(where:*):void
Passes the stardard gotoAndStop command to the base clip of this element
| fRenderableElement | ||
|
hide():void
Makes element invisible
| fRenderableElement | ||
![]() |
moveTo(x:Number, y:Number, z:Number):void
Moves the element to a given position
| fElement | |
|
show():void
Makes element visible
| fRenderableElement | ||
![]() |
stopFollowing(target:fElement):void
Stops element from following another element
| fElement | |
| castShadows | property |
public var castShadows:Boolean = trueBoolean value indicating if this object casts shadows. You can change this value dynamically Any element in your XML can be given a castShadows="false|true" attribute in its XML definition
| containerParent | property |
protected var containerParent:DisplayObjectContainer
| flashClip | property |
public var flashClip:MovieClipA reference to the library movieclip that was attached to create the element, so you can acces methods inside, nested clips or whatever
| receiveLights | property |
public var receiveLights:Boolean = trueBoolean value indicating if this object receives lighting. You can change this value dynamically. Any element in your XML can be given a receiveLights="false|true" attribute in its XML definition
| receiveShadows | property |
public var receiveShadows:Boolean = trueBoolean value indicating if this object receives shadows. You can change this value dynamically Any element in your XML can be given a receiveShadows="false|true" attribute in its XML definition
| solid | property |
public var solid:Boolean = trueBoolean value indicating if this object collides with others. Any element in your XML can be given a solid="false|true" attribute in its XML definition. When a character moves to a position that overlaps another element, if will trigger either the fCollide or the fWalkover Events, depending on the solid property for that element.
See also
| call | () | method |
public function call(what:String, param:* = null):voidCalls a function of the base clip
Parameterswhat:String — Name of the function to call
|
|
param:* (default = null) — An optional extra parameter to pass to the function
|
| gotoAndPlay | () | method |
public function gotoAndPlay(where:*):voidPasses the stardard gotoAndPLay command to the base clip of this element
Parameterswhere:* — A frame number or frame label
|
| gotoAndStop | () | method |
public function gotoAndStop(where:*):voidPasses the stardard gotoAndStop command to the base clip of this element
Parameterswhere:* — A frame number or frame label
|
| hide | () | method |
public function hide():voidMakes element invisible
| show | () | method |
public function show():voidMakes element visible