lundi 29 juin 2015

AS3 Access MovieClip on Stage?

I have a Movie Clip added to my timeline frame 1 and I am trying to figure out how I can access it, I have a button that when I press it I want to restart the movie clip from frame 1 and play. I know how to do that but I can't seem to figure out how to access it.

I exposed it to actionscript with the class of MyMovie.

I can create a new instance of it by going

var mymovie:MovieClip = new MyMovie();

But I want to access the one I added to the timeline frame, not create a new one.

Aucun commentaire:

Enregistrer un commentaire