Quantcast
Viewing all articles
Browse latest Browse all 9897

Callback function as soon as animation complete

Hi all,

 

My question is very straight forward:

 

I would like to fire up a function as soon as a symbol has finished playing, and i would like to write the code in the stage event.

 

Ive created a very simple exmple for the matter:

 

I have two symbols each with a very simple animation taking them out of the screen, and each with a trigger on 0ms - sym.stop();

I start rect1 animation in the stage event and i would like to call a callback function as soon as rect1's playback is complete.

 

screensohts attached:

 

Image may be NSFW.
Clik here to view.
1.jpg
Image may be NSFW.
Clik here to view.
2.jpg
Image may be NSFW.
Clik here to view.
3.jpg
Image may be NSFW.
Clik here to view.
4.jpg

 

I think a lot of people would like to see a sulotion to this issue.

 

thank you!

Asafg84


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>