Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG HERE #6

Open
GoogleCodeExporter opened this issue Mar 22, 2016 · 0 comments
Open

BUG HERE #6

GoogleCodeExporter opened this issue Mar 22, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 ]));
        }


Original issue reported on code.google.com by gooooooo...@gmail.com on 24 Aug 2009 at 7:23

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant