xw33421 / as3gif

Automatically exported from code.google.com/p/as3gif
0 stars 0 forks source link

Clearing previous frames - warkaround #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I've also noticed that with some gifs the previous frames aren't cleared 
properly (issue 8 and 10). A way to 'fix' these gifs is to open them in 
photoshop (cs5, I don't know what previous versions can edit animated gifs) for 
example, open the animation panel, select all the frames and set the frame 
disposal method to dispose. The gifs I tried had the disposal method set to 
"don't dispose" only for the first frame.

I hope this helps anyone who encountered this problem.

Original issue reported on code.google.com by bog...@smallwire.eu on 8 Oct 2010 at 1:12

GoogleCodeExporter commented 9 years ago
You could also change lines 115, 116, and 117 in GIFPlayer.as to be 
bitmapData = aFrames[ iIndex ].bitmapData;  
which makes it so whether dispose or don't dispose is toggled, it will always 
dispose.

(Or just replace the whole switch statement to be the line.)

Original comment by shipa...@gmail.com on 1 Apr 2011 at 10:41

GoogleCodeExporter commented 9 years ago
sorry I could not resolve this issue using above changes

You could also change lines 115, 116, and 117 in GIFPlayer.as to be 
bitmapData = aFrames[ iIndex ].bitmapData;  

-----
I have resolved this issue by clearing the image source loaded initially.

include attached GIFImage.as in your project.
and use like below to load gif image

<org:GIFImage source="images/icon/loading-bar.gif"/>

Original comment by abilash...@gmail.com on 3 Apr 2011 at 6:48

Attachments: