Class fever.display.BitmapClip

Implemented Interfaces

IFrameListener

Description

Use BitmapData as source and control it like a Timeline animated MovieClip.

Method Index

new BitmapClip()
addFrameScript(), addFrameStop(), getView(), gotoAndPlay(), gotoAndStop(), hide(), isPlaying(), nextFrame(), onEnterFrame(), play(), prevFrame(), removeFrameScript(), show(), stop(), toString()

Constructor Detail

BitmapClip

public function BitmapClip(target:MovieClip, data:BitmapData, nbImage:Number)

Constructor.

Parameters

targetMovieClip target where animation track will be created
dataBitmapData content source

Method Detail

getView

public function getView():MovieClip

Returns current drawing target.

show

public function show():Void

Shows content.

hide

public function hide():Void

Hides content.

isPlaying

public function isPlaying():Boolean

Returns true if clip is currently playing.

addFrameScript

public function addFrameScript(index:Number, scope):Void

Adds a script call for frame index.

Auto delegation is used ( Pixlib implementation )

removeFrameScript

public function removeFrameScript(index:Number):Void

Removes script for passed-in frame index.

addFrameStop

public function addFrameStop(index:Number):Void

Adds a stop command to passed-in frame index.

play

public function play():Void

Plays animation

stop

public function stop():Void

Stops animation

gotoAndStop

public function gotoAndStop(index:Number):Void

Stops animation and go to frame index

gotoAndPlay

public function gotoAndPlay(index:Number):Void

Play animation from index frame.

onEnterFrame

public function onEnterFrame():Void

Triggers at each displayed frame by the player.

nextFrame

public function nextFrame():Void

Go to next frame.

prevFrame

public function prevFrame():Void

Go to previous frame.

toString

public function toString():String

Returns string representation.