PDA

View Full Version : editing duplicated mcs



andr.in
November 23rd, 2002, 10:44 AM
I use duplicateMovieClip(_root.circle, "ball"+d, d)
now how can I edit all of these duplicated mcs?
like I want to make the width of the 15th of them "555" or sth... :-\

kirupa
November 23rd, 2002, 11:01 AM
Hey syko,
I believe you would simply use _root.ball15 to target that movie. When you are duplicate the movie "circle", you are giving the duplicated movie the name ball + d; where d is the number of the duplicated movie clip. The first movie clip would be ball1 while the 583rd movie clip would be ball583.

Does this help?

Cheers!
Kirupa :elderly:

andr.in
November 23rd, 2002, 12:17 PM
I knew that but It would be pain in the *** to edit all of them one by one if there are hundreds... maybe thousands of them... :P

WobblyFork
November 23rd, 2002, 03:59 PM
What exactly are you trying to do with this? You say it would be annoying to do it for 'thousands' of them, but are you just trying to change the width of every single one or what?

andr.in
November 23rd, 2002, 04:16 PM
like... the mcs are moving and their scale depends on their y position. Or something like that...
PPFFFFFFFFFFFFFF
this is so easy! Why ddn't I think of this before!!! :P:P
sorry for bothering you guys...
Why didn't I just place a code on the mc... it duplicates the actions as well... :P
thanx anyway :P:P

lostinbeta
November 23rd, 2002, 04:17 PM
LOL, or you could have just used a code in the frame that tells off them to scale on position instead of ball#.

pom
November 23rd, 2002, 11:28 PM
Well, it is a perfect place to use an array here. You duplicate the clip,
:scream: :scream: You didn't specify if you used F5 or FMX!!!! :superEvil:

lostinbeta
November 23rd, 2002, 11:30 PM
Da Da DUMMMMMM!!!!!!!!!!!!!!!!!!!!!!

Eilsoe: If you read this, make that super evil smiley real soon, I think Ilyas really needs it...lol.