Building on Robert's latest addition to imganim to fix
the loops problem, I pulled code from the frbimganim I
created a while back. Here is a new version of
imganim that has a functional resets command.
Resets is supposed to return the animation to the
frame 0 image on end of run or a stop.
Areas changed:
1 Modified Robert's loop changes to make it null if
alternates is active
2 Modified the function setResets to allow for a
boolean
3 Modified the stop function to reset the frame
number to 0 and update the image to frame 0
4 Modified the run function under the if resets to
update the image to the frame number 0
New imganim example attached, will need to change the
src directory. Has the resets command
Modified version of imganim.js, all changes commented,
will need stripped out
Cheers,
Dave C.
new imganim example and mod imganim.js file
Logged In: YES
user_id=184008
I made a mistake on my first post (thanks for the heads up
Paul). Attached is the corrected zip file. I also added
some code to enable the selection of the reset frame to be
the last frame visible or restting the visible frame to 0.