Class CAAT.Behavior.AlphaBehavior
				
				
Extends
					CAAT.Behavior.BaseBehavior.
				
			
				
				
				
					
Defined in:  AlphaBehavior.js.
				
			
| Constructor Attributes | Constructor Name and Description | 
|---|---|
| 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 Attributes | Method Name and Description | 
|---|---|
| 
								 calculateKeyFrameData(time)
								 
								
							 | 
						|
| 
								 calculateKeyFramesData(prefix, name, keyframessize)
								 
								
							 | 
						|
| 
								 getKeyFrameDataValues(time)
								 
								
							 | 
						|
| 
								 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
 
					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.