ActionScript for controlling animation (interactivity)
Dear comunity,
I'm trying to find a way how to make animation kind of interactive (not buttons). I am in need of stop at some frame and wait for keypress. There is a script which was posted here few time, which help to stop on each frame and continue on ANY key pressed.
I'd like to have something similar, but with possibility to stop only on some frames. Idelly would like to have 3 scripts:
1. General (working over wole timeline 😞 when I press predefined key (ideally "-"), the animation will go back to starting frame (like reset)
2. Wait for any key and continue (when I put this script on frame 10, animation will stop there and wait until I press any key and continue to next rame)
3. Wait for ENTER key and continue (similar to script 2 but only ENTER key will move us to next frame)
It would be nice to have all this functions in one script, and use some kind of marks on the timeline (I used this in Macromedia Director many years ago ), but I'm not sure if this is doable with Animate. If this is not possible with animate, I'll have to probably combine 1+2 and 1+3 and put them on the timeline where I need to wait for ANY or ENTER key.
What do you think? Is this somehow possible?
Thank you for your time and stay safe everyone there!
