AS3 Animation

Hi, long time lurker, first time poster.

I’m attempting to create a drum beat maker type game, you can view the current progress here

I am completely new to Flash and AS3, and have made appraisingly good progress so far.

The aspect I’m currently struggling with is in animating the play bar across the staves, which will detect collision with the placed notes and play the appropriate sound.

I’ve created a moveclip for the play bar and set the frames and tween to animate it from within the movieclip itself.

How do call that frame which is within the movieclip from the main timeline? My variations of using gotoAndPlay(“playline”, “play_animation”); have failed me.

playline being the movieclip and play_animation being the flag for the animation frame within that movieclip.



Apologies for clogging up the forum, I discovered the solution soon after I had posted :stuck_out_tongue:

I used and it works nicely.