I have a simple snowflake animation where 4 different snowflakes are falling down the screen. These are all contained in a symbol which is set to loop. The goal is that when the user clicks a snowflake it will pause the animation, populate a popup text box (in another symbol) then resume playing after 5 seconds. I'm no expert with javascript and I've checked just about every resource I could find but can't seem to get it working. My initial thought was to do some kind of if/else statement that checks to see if the symbol is playing, then if it is, pause it for so long. I'm having a difficult time with the syntax. Please, any help would be greatly appreciated.
↧