Packageorg.flashapi.coffeeshop.coffeebean.core
Classpublic class TriangleBase
InheritanceTriangleBase Inheritance BlitTransitionBase Inheritance flash.events.EventDispatcher
Subclasses TriangleDownIn, TriangleDownOut, TriangleLeftIn, TriangleLeftOut, TriangleRightIn, TriangleRightOut, TriangleUpIn, TriangleUpOut

Language Version : ActionScript 3.0
Product Version : SPAS 3.0
Runtime Versions : AIR 1.0, Flash Player Player - 9

The TriangleBase class is the base class for all iris triangular transitions.



Public Properties
 PropertyDefined By
 InheritedframesNum : uint
Sets or gets the number of frames that can be used to split the animation.
BlitTransitionBase
Protected Properties
 PropertyDefined By
 Inherited$canvas : BitmapData
A reference to the external BitmapData instance where the BlitTransition effect is rendered.
BlitTransitionBase
 Inherited$finalState : BitmapData
A reference to the final BitmapData instance.
BlitTransitionBase
 Inherited$frame : Number
A reference to the current frame position within this BlitTransition object.
BlitTransitionBase
 Inherited$framesNum : uint
The number of frames for this BlitTransition object.
BlitTransitionBase
 Inherited$initialState : BitmapData
A reference to the initial BitmapData instance.
BlitTransitionBase
Public Methods
 MethodDefined By
  
TriangleBase(canvas:BitmapData, initialState:BitmapData, finalState:BitmapData, orientation:String)
Constructor.
TriangleBase
 Inherited
finalize():void
Use the finalize() method to ensure that all internal process of an object are killed before you delete it.
BlitTransitionBase
 Inherited
getCanvas():BitmapData
Returns the blitting BitmapData where this BlitTransition object is rendered.
BlitTransitionBase
 Inherited
getFinalBitmap():BitmapData
Returns the BitmapData instance to which the effect transition finishes.
BlitTransitionBase
 Inherited
getFrame():uint
Returns the current frame of this BlitTransition object.
BlitTransitionBase
 Inherited
getHeight():Number
Returns the height, in pixels, of the blitting BitmapData where this BlitTransition object is rendered.
BlitTransitionBase
 Inherited
getInitialBitmap():BitmapData
Returns the BitmapData instance from which the effect transition starts.
BlitTransitionBase
 Inherited
getWidth():Number
Returns the width, in pixels, of the blitting BitmapData where this BlitTransition object is rendered.
BlitTransitionBase
 Inherited
update(frame:uint):void
Updates the blitting transition effect according to the current frame specified by the frame parameter.
BlitTransitionBase
Protected Methods
 MethodDefined By
  
renderTriangleH(factor:Number, from:BitmapData, to:BitmapData):void
Draws triangular left or right transitions.
TriangleBase
  
renderTriangleV(factor:Number, from:BitmapData, to:BitmapData):void
Draws triangular up or down transitions.
TriangleBase
 Inherited
setFrame(frame:uint):Number
Sets the current frame of the animation and returns the current position of the playhead within the animation, in the range [0, 1].
BlitTransitionBase
Constructor Detail
TriangleBase()Constructor
public function TriangleBase(canvas:BitmapData, initialState:BitmapData, finalState:BitmapData, orientation:String)

Constructor. Creates a new TriangleBase instance with the specified parameters.

Parameters
canvas:BitmapData — The BitmapData object where the effect is rendered.
 
initialState:BitmapData — The first BitmapData object used to render the effect.
 
finalState:BitmapData — The second BitmapData object used to render the effect.
 
orientation:String — The orientation of the triangle. Possible values are TriangleType.UP and TriangleType.DOWN.
Method Detail
renderTriangleH()method
protected function renderTriangleH(factor:Number, from:BitmapData, to:BitmapData):void

Draws triangular left or right transitions.

Parameters

factor:Number — The size precentage of the triangle.
 
from:BitmapData — The initial image rendered by this effect.
 
to:BitmapData — The final image rendered by this effect.

renderTriangleV()method 
protected function renderTriangleV(factor:Number, from:BitmapData, to:BitmapData):void

Draws triangular up or down transitions.

Parameters

factor:Number — The size precentage of the triangle.
 
from:BitmapData — The initial image rendered by this effect.
 
to:BitmapData — The final image rendered by this effect.