Daniel Carrol asked me if i knew a way to replay/restart a non-looping gif in Lectora. Codewise that wasnot too difficult, the biggest challenge is to target the proper element in the html.
Using Firebug or other browser development tools ( both IE and Chrome have them too ) you can check what html name an element has…where the source for it resides… and then you know what to target.
If you check my code, you see that when the document is loaded i target the source for the gif here:
explosionGif = document.getElementById(“anim39”).getElementsByTagName(‘img’);
Actually i do think using spritesheets would be better for this kind of animation. Will make a sample of that soon…