Class Index | File Index

Classes


Class CAAT.Behavior.AlphaBehavior


Extends CAAT.Behavior.BaseBehavior.

Defined in: AlphaBehavior.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
<private>  
Ending alpha transparency value.
<private>  
Starting alpha transparency value.
Fields borrowed from class CAAT.Behavior.BaseBehavior:
actor, behaviorDuration, behaviorStartTime, cycleBehavior, discardable, doValueApplication, id, interpolator, isRelative, lifecycleListenerList, solved, status, timeOffset
Method Summary
Method Attributes Method Name and Description
 
 
calculateKeyFramesData(prefix, name, keyframessize)
 
 
 
parse(obj)
 
setForTime(time, actor)
Applies corresponding alpha transparency value for a given time.
 
setValues(start, end)
Set alpha transparency minimum and maximum value.
Methods borrowed from class CAAT.Behavior.BaseBehavior:
__init, addListener, apply, emptyListenerList, fireBehaviorAppliedEvent, fireBehaviorExpiredEvent, fireBehaviorStartedEvent, getDuration, getStartTime, initialize, isBehaviorInTime, isCycle, normalizeTime, setCycle, setDefaultInterpolator, setDelayTime, setExpired, setFrameTime, setId, setInterpolator, setOutOfFrameTime, setPingPong, setRelative, setRelativeValues, setStatus, setTimeOffset, setValueApplication
Class Detail
CAAT.Behavior.AlphaBehavior()
Field Detail
<private> endAlpha
Ending alpha transparency value. Between 0 and 1.

<private> startAlpha
Starting alpha transparency value. Between 0 and 1.
Method Detail
calculateKeyFrameData(time)
Parameters:
time

calculateKeyFramesData(prefix, name, keyframessize)
Parameters:
prefix
name
keyframessize

getKeyFrameDataValues(time)
Parameters:
time

getPropertyName()

parse(obj)
Parameters:
obj

{number} setForTime(time, actor)
Applies corresponding alpha transparency value for a given time.
Parameters:
time
the time to apply the scale for.
actor
the target actor to set transparency for.
Returns:
{number} the alpha value set. Normalized from 0 (total transparency) to 1 (total opacity)

setValues(start, end)
Set alpha transparency minimum and maximum value. This value can be coerced by Actor's property isGloblAlpha.
Parameters:
start
{number} a float indicating the starting alpha value.
end
{number} a float indicating the ending alpha value.

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Jul 01 2013 04:59:15 GMT-0700 (PDT)