PDA

View Full Version : [Q] Possible to change the frame of the animated GIF file???


CyanBlue
11-20-2006, 07:55 PM
I have no idea if this can be done or not... So, I thought that I'd ask... :)

Let's just say I have an SWF embedded into the HTML file... In that HTML file, there is a DIV layer that contains an animated GIF file...
The SWF have a textField and a button... I want to type in, say, 5 and press the button which will move the frame of the animated GIF file to 5...

Is there any way to do this or am I just dreaming???

Thanks... :)

jsebrech
11-21-2006, 07:55 AM
Not to my knowledge. But you could make a tiled gif, place it inside a clipped div, positioned absolutely, and move it around. This would create the illusion of changing frames, and you would load only one image instead of many, speeding up the loading by a lot. FCKEditor uses that trick to accelerate the loading of its toolbars.

CyanBlue
11-21-2006, 01:30 PM
Thanks, jsebrech... I thought about something similar(displaying series of image frames) instead of using an animated gif file, but I guess it won't work... :(

jsebrech
11-21-2006, 03:04 PM
You could always replace the animated gif with an animated swf :p

CyanBlue
11-21-2006, 03:33 PM
and I can control the frame of the SWF???

jsebrech
11-22-2006, 08:04 AM
With javascript and a bit of actionscript, why not?

CyanBlue
11-22-2006, 01:46 PM
Hm... Interesting... I'll try that if nothing works... Thanks... :)