Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

targeting duplicated movieclips 1

Status
Not open for further replies.

miguelisboa

Technical User
Apr 29, 2006
13
PT
i'm drawing (based on an elipse) and using this code:
duplicateMovieClip(ponto, "ponto" + i, this.getNextHighestDepth());
i varies from zero to 359, so how can i target every (or any) of the recent created mcs?
my prob is the duplicated movie clip's name! how to write it?
if i use ("ponto" + i) i get a String, not my mc.
Any help would be apreciated!
TiA
 
without seeing more code hard to be exact but try

this["ponto"+i]
 
bingo!
i just tried:
trace(this["ponto"+i]._x);
this["ponto"+i]._alpha=random(100);
and works perfectly

thanks a lot!
BTW where could i have learned that sintax (this[blabla])?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top