Tag Info

Hot answers tagged

2

Put the horse animation on play and remove the horseTwo.gotoAndPlay(next); line from the event listener. The problem is the horseTwo.gotoAndPlay(next); line. With that you are always returning to the beginning of the current label, end the animation never goes forward. The animation plays automatically when it is on play. So you dont need the var ...


1

I figured it out. I used the DisplayObjects function swapChildren() and it did the job!



Only top voted, non community-wiki answers of a minimum length are eligible