You can create animated gif using flash. Complete the animation at first. Then publish it as movie and select animated gif. Thats all.