Loading a gif?

Posted on
  • I was wanting to add a fire gif, just have it flicker etc.
    I know how to load images but did not know if the same would work for a gif?
    Would I have to do it like a video or load individually frames?
    It is not meant to be a big part of the app so don't want it to be a massive memory requirement.

  • There's nothing built in for animations, so you'd have to save each frame as a separate image. It would be possible to stick all the images in one 'film strip' but rendering them back out is a bit more tricky code-wise.

    If you're storing them in flash it's unlikely to be a huge issue for memory usage though.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview

Loading a gif?

Posted by Avatar for DrBard @DrBard