Ultimate Gear War
Join the alien war, prepare your gear and protect your base at all cost!
4.25 / 5.00 13,243 ViewsCan someone give me code to turn a .swf animation, pixel for pixel, frame for frame, into a animated gif or series of pngs?
-=+ The Story +=-
I recently started animating some pixel art using flash to do frame by frame animation. However, CS3 seems to have some issue saving animations into animated .gifs. It ends up changing around colors but then curiously leaves the correct color in the resulting .gif's color pallet index. Anyway the whole thing is a mess that I'm having to work around.
I think my holy grail of solutions may be some actionscript that converts a .swf, pixel for pixel, frame for frame, into an animated .gif, which I hear ActionScript 3.0 can do. I think this will cause the least amount of issues including allowing me to use ActionScript if I want some things generated via code. Note, because I may want some things generated via code is why I don't just export into a sequence of images.
I know some stuff about ActionScript 2.0 and have programming experience in other languages but, at the moment, am not interested in going too deep into ActionScript 3.0 to write the code myself, which is why I'm asking if I can have the code.
I realize one issue here is that .gif's have a color pallet and my animation may have more then 255 colors (at the moment they do not). It may be better if the images were saved into a series of .pngs.
That's the problem and I'd love any insight that people can offer.
I thought people might enjoy seeing some of my actual work. Here is a running thread as well as the post where the color problem first arose. In the first image, note the lack of highlights in the purple hair, that are present in the second image.