How_to_use Wiki page commented on by tillawy
- === To Build an SWC file ===
compc -optimize=true -static-link-runtime-shared-libraries=true -source-path+=. -output=bin/as3gif_0.6.swc -include-classes org.bytearray.gif.decoder.GIFDecoder org.bytearray.gif.encoder.GIFEncoder org.bytearray.gif.encoder.LZWEncoder org.bytearray.gif.encoder.NeuQuant org.bytearray.gif.errors.FileTypeError org.bytearray.gif.events.FileTypeEvent org.bytearray.gif.events.FrameEvent org.bytearray.gif.events.GIFPlayerEvent org.bytearray.gif.events.TimeoutEvent org.bytearray.gif.frames.GIFFrame org.bytearray.gif.player.GIFPlayer
and don't forget to include
*import org.bytearray.gif.player.GIFPlayer*
=== To Build an SWC file ===
compc -optimize=true -static-link-runtime-shared-libraries=true -source-path+=. -output=bin/as3gif_0.6.swc -include-classes org.bytearray.gif.decoder.GIFDecoder org.bytearray.gif.encoder.GIFEncoder org.bytearray.gif.encoder.LZWEncoder org.bytearray.gif.encoder.NeuQuant org.bytearray.gif.errors.FileTypeError org.bytearray.gif.events.FileTypeEvent org.bytearray.gif.events.FrameEvent org.bytearray.gif.events.GIFPlayerEvent org.bytearray.gif.events.TimeoutEvent org.bytearray.gif.frames.GIFFrame org.bytearray.gif.player.GIFPlayer
and don't forget to include
*import org.bytearray.gif.player.GIFPlayer*
Dec 23, 2009
How_to_use Wiki page commented on by tillawy
- To build the ".swc" file, use the following command.
compc -source-path+=. -output=bin/as3gif_0.6.swc -include-classes org.bytearray.gif.decoder.GIFDecoder org.bytearray.gif.encoder.GIFEncoder org.bytearray.gif.encoder.LZWEncoder org.bytearray.gif.encoder.NeuQuant org.bytearray.gif.errors.FileTypeError org.bytearray.gif.events.FileTypeEvent org.bytearray.gif.events.FrameEvent org.bytearray.gif.events.GIFPlayerEvent org.bytearray.gif.events.TimeoutEvent org.bytearray.gif.frames.GIFFrame org.bytearray.gif.player.GIFPlayer
To build the ".swc" file, use the following command.
compc -source-path+=. -output=bin/as3gif_0.6.swc -include-classes org.bytearray.gif.decoder.GIFDecoder org.bytearray.gif.encoder.GIFEncoder org.bytearray.gif.encoder.LZWEncoder org.bytearray.gif.encoder.NeuQuant org.bytearray.gif.errors.FileTypeError org.bytearray.gif.events.FileTypeEvent org.bytearray.gif.events.FrameEvent org.bytearray.gif.events.GIFPlayerEvent org.bytearray.gif.events.TimeoutEvent org.bytearray.gif.frames.GIFFrame org.bytearray.gif.player.GIFPlayer
FAQ Wiki page commented on by jungaal
- I like to embed the URLRequest which holds the path of a gif file. How to achieve this. ?
I like to embed the URLRequest which holds the path of a gif file. How to achieve this. ?
Aug 24, 2009
issue 6
(BUG HERE) reported by today...@hotmail.com
- this version has a Bug in GIFPlayer.as
private function update( pEvt : TimerEvent ) : void {
var delay : int = aFrames[ iIndex = iInc++ % arrayLng ].delay;
pEvt.target.delay = ( delay > 0 ) ? delay : 100;
/*look here..gifDecoder.disposeValue is a Number means this is a single
disposeValue in the gif,but it's a fault,not everyone.every Frame has her
disponseValue.so i think it's a bug.
Fst: GIFFrame.as
public var disposeValue:int;
public function GIFFrame( _pImage:BitmapData, _pDelay:int,_pdisponse:int){
bitmapData = _pImage;
delay = _pDelay;
disposeValue = _pdisponse;
}
second:GIFDecoder.as
frames.push ( new GIFFrame (bitmap, delay,dispose) ); // add image to frame
list
final:GIFPlayer.as
private function update ( pEvt:TimerEvent ) :void{
var delay:int = aFrames[ iIndex = iInc++ % arrayLng ].delay;
pEvt.target.delay = ( delay > 0 ) ? delay : 100;
switch ( aFrames[ iIndex ].disposeValue )
*/
switch ( gifDecoder.disposeValue ) {
case 1:
if ( !iIndex ) bitmapData = aFrames[ 0 ].bitmapData.clone();
bitmapData.draw(aFrames[ iIndex ].bitmapData);
break;
case 2:
bitmapData = aFrames[ iIndex ].bitmapData;
break;
}
dispatchEvent(new FrameEvent(FrameEvent.FRAME_RENDERED, aFrames[ iIndex ]));
}
this version has a Bug in GIFPlayer.as
private function update( pEvt : TimerEvent ) : void {
var delay : int = aFrames[ iIndex = iInc++ % arrayLng ].delay;
pEvt.target.delay = ( delay > 0 ) ? delay : 100;
/*look here..gifDecoder.disposeValue is a Number means this is a single
disposeValue in the gif,but it's a fault,not everyone.every Frame has her
disponseValue.so i think it's a bug.
Fst: GIFFrame.as
public var disposeValue:int;
public function GIFFrame( _pImage:BitmapData, _pDelay:int,_pdisponse:int){
bitmapData = _pImage;
delay = _pDelay;
disposeValue = _pdisponse;
}
second:GIFDecoder.as
frames.push ( new GIFFrame (bitmap, delay,dispose) ); // add image to frame
list
final:GIFPlayer.as
private function update ( pEvt:TimerEvent ) :void{
var delay:int = aFrames[ iIndex = iInc++ % arrayLng ].delay;
pEvt.target.delay = ( delay > 0 ) ? delay : 100;
switch ( aFrames[ iIndex ].disposeValue )
*/
switch ( gifDecoder.disposeValue ) {
case 1:
if ( !iIndex ) bitmapData = aFrames[ 0 ].bitmapData.clone();
bitmapData.draw(aFrames[ iIndex ].bitmapData);
break;
case 2:
bitmapData = aFrames[ iIndex ].bitmapData;
break;
}
dispatchEvent(new FrameEvent(FrameEvent.FRAME_RENDERED, aFrames[ iIndex ]));
}
Aug 24, 2009
issue 5
(License problem) commented on by today...@hotmail.com
- this version has a Bug in GIFPlayer.as
private function update( pEvt : TimerEvent ) : void {
var delay : int = aFrames[ iIndex = iInc++ % arrayLng ].delay;
pEvt.target.delay = ( delay > 0 ) ? delay : 100;
/*look here..gifDecoder.disposeValue is a Number means this is a single
disposeValue in the gif,but it's a fault,not everyone.every Frame has her
disponseValue.so i think it's a bug.
Fst: GIFFrame.as
public var disposeValue:int;
public function GIFFrame( _pImage:BitmapData, _pDelay:int,_pdisponse:int){
bitmapData = _pImage;
delay = _pDelay;
disposeValue = _pdisponse;
}
second:GIFDecoder.as
frames.push ( new GIFFrame (bitmap, delay,dispose) ); // add image to frame list
final:GIFPlayer.as
private function update ( pEvt:TimerEvent ) :void{
var delay:int = aFrames[ iIndex = iInc++ % arrayLng ].delay;
pEvt.target.delay = ( delay > 0 ) ? delay : 100;
switch ( aFrames[ iIndex ].disposeValue )
*/
switch ( gifDecoder.disposeValue ) {
case 1:
if ( !iIndex ) bitmapData = aFrames[ 0 ].bitmapData.clone();
bitmapData.draw(aFrames[ iIndex ].bitmapData);
break;
case 2:
bitmapData = aFrames[ iIndex ].bitmapData;
break;
}
dispatchEvent(new FrameEvent(FrameEvent.FRAME_RENDERED, aFrames[ iIndex ]));
}
this version has a Bug in GIFPlayer.as
private function update( pEvt : TimerEvent ) : void {
var delay : int = aFrames[ iIndex = iInc++ % arrayLng ].delay;
pEvt.target.delay = ( delay > 0 ) ? delay : 100;
/*look here..gifDecoder.disposeValue is a Number means this is a single
disposeValue in the gif,but it's a fault,not everyone.every Frame has her
disponseValue.so i think it's a bug.
Fst: GIFFrame.as
public var disposeValue:int;
public function GIFFrame( _pImage:BitmapData, _pDelay:int,_pdisponse:int){
bitmapData = _pImage;
delay = _pDelay;
disposeValue = _pdisponse;
}
second:GIFDecoder.as
frames.push ( new GIFFrame (bitmap, delay,dispose) ); // add image to frame list
final:GIFPlayer.as
private function update ( pEvt:TimerEvent ) :void{
var delay:int = aFrames[ iIndex = iInc++ % arrayLng ].delay;
pEvt.target.delay = ( delay > 0 ) ? delay : 100;
switch ( aFrames[ iIndex ].disposeValue )
*/
switch ( gifDecoder.disposeValue ) {
case 1:
if ( !iIndex ) bitmapData = aFrames[ 0 ].bitmapData.clone();
bitmapData.draw(aFrames[ iIndex ].bitmapData);
break;
case 2:
bitmapData = aFrames[ iIndex ].bitmapData;
break;
}
dispatchEvent(new FrameEvent(FrameEvent.FRAME_RENDERED, aFrames[ iIndex ]));
}
Aug 11, 2009
issue 5
(License problem) commented on by thibault.imbert
- With pleasure guys !
Thibault
With pleasure guys !
Thibault
Aug 05, 2009
issue 5
(License problem) commented on by hrundik
- Thank you!
Thank you!
Aug 05, 2009
issue 5
(License problem) commented on by bsmptc
- Looks like this can be closed now, re-published under MIT. Thanks!
Looks like this can be closed now, re-published under MIT. Thanks!
Apr 03, 2009
issue 2
(some static gifs aren't displayed) commented on by tesract
- if it helps get this bug resolved at all...
The gifs posted in the original bug are GIF87a acorrding to their headers. Here is a
GIF89a which has the same problem.
if it helps get this bug resolved at all...
The gifs posted in the original bug are GIF87a acorrding to their headers. Here is a
GIF89a which has the same problem.
Feb 16, 2009
issue 5
(License problem) reported by hrundik
- Is it possible to republish the component under MIT license?
Is it possible to republish the component under MIT license?
Feb 11, 2009
issue 4
(Bugs to know:) reported by julious.loa
- Please change this in the GIFPlayer class:
private function update ( pEvt:TimerEvent ) :void
{
var delay:int = aFrames[ iIndex = iInc++ % arrayLng ].delay;
pEvt.target.delay = ( delay > 0 ) ? delay : 100;
switch ( gifDecoder.disposeValue )
{
case 0:
if ( !iIndex ) bitmapData = aFrames[ 0 ].bitmapData.clone();
bitmapData.draw ( aFrames[ iIndex ].bitmapData );
break;
case 1:
if ( !iIndex ) bitmapData = aFrames[ 0 ].bitmapData.clone();
bitmapData.draw ( aFrames[ iIndex ].bitmapData );
break
case 2:
bitmapData = aFrames[ iIndex ].bitmapData;
break;
}
dispatchEvent ( new FrameEvent ( FrameEvent.FRAME_RENDERED, aFrames[ iIndex
] ) );
}
+ in the readSteam() method before event dispatching add this lines plz:
__width = aFrames[0].bitmapData.rect.width;
__height = aFrames[0].bitmapData.rect.height;
dispatchEvent(new GIFPlayerEvent ( GIFPlayerEvent.COMPLETE ,
aFrames[0].bitmapData.rect));
__width, __height - create override methods for them. Usability grows ^_^
Cheers, Jloa
Please change this in the GIFPlayer class:
private function update ( pEvt:TimerEvent ) :void
{
var delay:int = aFrames[ iIndex = iInc++ % arrayLng ].delay;
pEvt.target.delay = ( delay > 0 ) ? delay : 100;
switch ( gifDecoder.disposeValue )
{
case 0:
if ( !iIndex ) bitmapData = aFrames[ 0 ].bitmapData.clone();
bitmapData.draw ( aFrames[ iIndex ].bitmapData );
break;
case 1:
if ( !iIndex ) bitmapData = aFrames[ 0 ].bitmapData.clone();
bitmapData.draw ( aFrames[ iIndex ].bitmapData );
break
case 2:
bitmapData = aFrames[ iIndex ].bitmapData;
break;
}
dispatchEvent ( new FrameEvent ( FrameEvent.FRAME_RENDERED, aFrames[ iIndex
] ) );
}
+ in the readSteam() method before event dispatching add this lines plz:
__width = aFrames[0].bitmapData.rect.width;
__height = aFrames[0].bitmapData.rect.height;
dispatchEvent(new GIFPlayerEvent ( GIFPlayerEvent.COMPLETE ,
aFrames[0].bitmapData.rect));
__width, __height - create override methods for them. Usability grows ^_^
Cheers, Jloa
Older
Dec 17, 2008
issue 2
(some static gifs aren't displayed) reported by villalvilla
- What steps will reproduce the problem?
1. Load one of this files in your library:
http://www.amezbros.com/1.gifhttp://www.amezbros.com/2.gifhttp://www.amezbros.com/3.gif
What is the expected output? What do you see instead?
It is expected to appear an static gif image, but it appears a white rectangle
What version of the product are you using? On what operating system?
AS3GIF player 0.4
Please provide any additional information below.
What steps will reproduce the problem?
1. Load one of this files in your library:
http://www.amezbros.com/1.gifhttp://www.amezbros.com/2.gifhttp://www.amezbros.com/3.gif
What is the expected output? What do you see instead?
It is expected to appear an static gif image, but it appears a white rectangle
What version of the product are you using? On what operating system?
AS3GIF player 0.4
Please provide any additional information below.
issue 1
(Source code) commented on by amarshukla123
- there is not any documentation in this project ..How can a newbie use this component
..Can u show here a little exampel with code about how to use it ???
there is not any documentation in this project ..How can a newbie use this component
..Can u show here a little exampel with code about how to use it ???