| Package | org.alivepdf.images.gif.player |
| Class | public class GIFPlayer |
| Inheritance | GIFPlayer flash.display.Bitmap |
| Property | Defined By | ||
|---|---|---|---|
| autoPlay : Boolean [read-only]
Returns is the autoPlay value
| GIFPlayer | ||
| currentFrame : int [read-only]
Returns current frame being played
| GIFPlayer | ||
| frames : Array [read-only]
Returns an array of GIFFrame objects
| GIFPlayer | ||
| loopCount : int [read-only]
Returns how many times the GIF file is played
A loop value of 0 means repeat indefinitiely. | GIFPlayer | ||
| preHeight : Number | GIFPlayer | ||
| preWidth : Number | GIFPlayer | ||
| totalFrames : int [read-only]
Returns GIF's total frames
| GIFPlayer | ||
| Method | Defined By | ||
|---|---|---|---|
GIFPlayer(pAutoPlay:Boolean = true) | GIFPlayer | ||
getDelay(pFrame:int):int
Retrieves the delay for a specific frame
| GIFPlayer | ||
Retrieves a frame from the GIF file as a BitmapData
| GIFPlayer | ||
gotoAndPlay(pFrame:int):void
Starts playing the GIF at the frame specified as parameter
| GIFPlayer | ||
gotoAndStop(pFrame:int):void
Moves the playhead to the specified frame and stops playing
| GIFPlayer | ||
load(pRequest:URLRequest):void
Load any GIF file
| GIFPlayer | ||
loadBytes(pBytes:ByteArray):BitmapData
Load any valid GIF ByteArray
| GIFPlayer | ||
play():void
Start playing
| GIFPlayer | ||
stop():void
Stop playing
| GIFPlayer | ||
| autoPlay | property |
autoPlay:Boolean [read-only] Returns is the autoPlay value
public function get autoPlay():Boolean| currentFrame | property |
currentFrame:int [read-only] Returns current frame being played
public function get currentFrame():int| frames | property |
frames:Array [read-only] Returns an array of GIFFrame objects
public function get frames():Array| loopCount | property |
loopCount:int [read-only] Returns how many times the GIF file is played A loop value of 0 means repeat indefinitiely.
public function get loopCount():int| preHeight | property |
public var preHeight:Number| preWidth | property |
public var preWidth:Number| totalFrames | property |
totalFrames:int [read-only] Returns GIF's total frames
public function get totalFrames():int| GIFPlayer | () | Constructor |
public function GIFPlayer(pAutoPlay:Boolean = true)pAutoPlay:Boolean (default = true) |
| getDelay | () | method |
public function getDelay(pFrame:int):intRetrieves the delay for a specific frame
Parameters
pFrame:int |
int — int
|
| getFrame | () | method |
public function getFrame(pFrame:int):GIFFrameRetrieves a frame from the GIF file as a BitmapData
Parameters
pFrame:int |
GIFFrame — BitmapData object
|
| gotoAndPlay | () | method |
public function gotoAndPlay(pFrame:int):voidStarts playing the GIF at the frame specified as parameter
Parameters
pFrame:int |
| gotoAndStop | () | method |
public function gotoAndStop(pFrame:int):voidMoves the playhead to the specified frame and stops playing
Parameters
pFrame:int |
| load | () | method |
public function load(pRequest:URLRequest):voidLoad any GIF file
Parameters
pRequest:URLRequest |
| loadBytes | () | method |
public function loadBytes(pBytes:ByteArray):BitmapDataLoad any valid GIF ByteArray
Parameters
pBytes:ByteArray |
BitmapData — void
|
| play | () | method |
public function play():voidStart playing
| stop | () | method |
public function stop():voidStop playing