Packageorg.flashapi.coffeeshop.coffeebean.tile
Classpublic class MosaicTile
InheritanceMosaicTile Inheritance BitmapTileBase Inheritance flash.events.EventDispatcher

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

The MosaicTile class defines the tiles used by mosaic transitions.

See also

org.flashapi.coffeeshop.coffeebean.MosaicExpand
org.flashapi.coffeeshop.coffeebean.MosaicColapse


Public Properties
 PropertyDefined By
 Inheritedcolor : uint = 0xffffff
The color used to render the BitmapTile when the tileFxType property is TileFxType.COLOR_FX, in the format 0xRRGGBB.
BitmapTileBase
 Inheritedend : Number
Sets or gets the position in the BlitTileTransition instance for which the rendering of this BitmapTile finishes.
BitmapTileBase
 InheritedframesNum : uint
Sets or gets the number of frames that are used to split the tile animation.
BitmapTileBase
 Inheritedstart : Number
Sets or gets the position in the BlitTileTransition instance for which the rendering of this BitmapTile starts.
BitmapTileBase
 InheritedtileFxType : String
Sets or gets the type of effect that can be applied to the BitmapTile object.
BitmapTileBase
Protected Properties
 PropertyDefined By
 Inherited$canvas : BitmapData
The BitmapData object where the BitmapTile instance will be drawn.
BitmapTileBase
 Inherited$canvasHeight : Number
The height of the main BitmapData instance, in pixels.
BitmapTileBase
 Inherited$canvasWidth : Number
The width of the main BitmapData instance, in pixels.
BitmapTileBase
 Inherited$destPoint : Point
The destination point that represents the upper-left corner of the rectangular area where the BitmapTile instance is placed.
BitmapTileBase
 Inherited$duration : Number
The amount of time during the BitmapTile instance could render a custom effect.
BitmapTileBase
 Inherited$end : Number
The ending position of the BitmapTile instance.
BitmapTileBase
 Inherited$frame : Number
A reference to the current frame position within this BitmapTile object.
BitmapTileBase
 Inherited$framesNum : uint
The number of frames for this BitmapTile object.
BitmapTileBase
 Inherited$height : Number
The height of the BitmapTile instance, in pixels.
BitmapTileBase
 Inherited$source : BitmapData
The source BitmapData used to draw the BitmapTile instance.
BitmapTileBase
 Inherited$start : Number
The start position of the BitmapTile instance.
BitmapTileBase
 Inherited$tileFx : Function
A reference to a function that defines a custom effect for this BitmapTile instance.
BitmapTileBase
 Inherited$tileFxType : String
The type of effect to be applyed on this BitmapTile instance.
BitmapTileBase
 Inherited$width : Number
The width of the BitmapTile instance, in pixels.
BitmapTileBase
Public Methods
 MethodDefined By
  
MosaicTile(canvas:BitmapData, source:BitmapData, destPoint:Point, width:Number, height:Number)
Constructor.
MosaicTile
 Inherited
finalize():void
Use the finalize() method to ensure that all internal process of an object are killed before you delete it.
BitmapTileBase
  
update(frame:uint):void
[override] Updates the BitmapTile object according to the current frame specified by the position parameter.
MosaicTile
Protected Methods
 MethodDefined By
 Inherited
colorFx(factor:Number):void
[Bitmap Tile FX.] Sets the opacity of the BitmapTile instance as specified by the factor parameter.
BitmapTileBase
 Inherited
fadeFx(factor:Number):void
[Bitmap Tile FX.] Sets the opacity of the BitmapTile instance as specified by the factor parameter.
BitmapTileBase
 Inherited
noFx(factor:Number):void
[Bitmap Tile FX.] Always displays a plain tile regardless of the value of the factor parameter.
BitmapTileBase
 Inherited
scaleFx(factor:Number):void
[Bitmap Tile FX.] Scales (sets percentage) of the BitmapTile instance as specified by the factor parameter.
BitmapTileBase
 Inherited
setFrame(frame:uint):Number
Sets the current frame of the tile animation and returns the current position of the playhead within the tile animation, in the range [0, 1].
BitmapTileBase
 Inherited
Updates the amount of time during the BitmapTile instance could render a custom effect.
BitmapTileBase
Constructor Detail
MosaicTile()Constructor
public function MosaicTile(canvas:BitmapData, source:BitmapData, destPoint:Point, width:Number, height:Number)

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

Parameters
canvas:BitmapData — The BitmapData object where the MosaicTile instance will be drawn.
 
source:BitmapData — The source BitmapData object used to draw the MosaicTile instance.
 
destPoint:Point — The destination point that represents the upper-left corner of the rectangular area where the MosaicTile instance is placed.
 
width:Number
 
height:Number
Method Detail
update()method
override public function update(frame:uint):void

Updates the BitmapTile object according to the current frame specified by the position parameter.

Parameters

frame:uint — The current position of the tile animation in the range [0, frames], where frames defines number of frames that can be used to split the tile animation.