Hi, and sorry for being stupid.
I am trying to get some actions on a duplicated MovieClip
Now what I got is something like this:
Actionscript Code:
// I have some loop wrapped around this so the 'i' changes. duplicateMovieClip("target", "new"+i, 100+i); // I use 'i' because i need a few of those...
And it won't work. Logically it just makes MCs "new1" "new2" "new3" and so on.And then it checks for those.
If i put a MC named "new3" on stage, it works. I guess i'm just stupid and doing the duplication wrong or something.
Any help? Thanks.
Oh no.. here it's like this, to illustrate. In the code they have different names.(though it really doesn't matters if they are in different 'for' loops)
I did some checking using 'trace' to see the names of the duplicates and they sees to be fine...But it doesn't work.
If i put them manually on the stage and name them something like 'new1' 'new2' and so on then it works..
When using the duplicate function what code is being used for x and y placement. Chances are it is working, it's just putting them all on top of each other.
Well, it's not just the X, Y placement,even if i do something like 'trace' under that it won't work.(I mean the second part of my code)
But i'm using:
duplicateMovieClip("target", "new"+i, 100+i);
_root["new"+i]._x = somex;
_root["new"+i]._y = somey;
Hola chicos necesito hacer un practico es basico pero no recuerdo como era, tengo que hacer 1 circulo como movieclip, y con attachMovie o DuplicateMovieClip, con for(); _x y _width, el 3 circulo tiene que ser más angosto que los otros 3. yo use este codigo pero solo aparecen 2 circulos y uno se deforma. solo es duplicar cuatro circulos no se usa boton ni mouse