質問

I drew an image on the stage and converted it to a movieclip whose name is

originalMovieClip

. The movieclip is now in my library. I dragged the movieclip in my library onto the stage. I did this twice, so now I have two movieclips which are both an instance of

originalMovieClip 

which was the original movieclip which I created.

Through actionscript 3, is there a way for me to target all movieclips which are an instance of

originalMovieClip

? I want to basically do

all Movieclips Which Are An Instance Of originalMovieClip.gotoAndStop(2);
役に立ちましたか?

解決

In such a basic manner, the short answer is - NO.

Short story long - you need to put them into array and loop through it, and stop every movie clip inside. Other technique (not appropriate) is to loop through all children of stage, and check if the MovieClip is specific type (again you should at least set linkage class to originalMovieClip).

I suggest using the first one :)

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top