Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.18 / 5.00 3,534 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.80 / 5.00 4,200 ViewsI am duplicating a movieclip within a movieclip.
_root.Ground.duplicateMovieClip("ground","dirt"+_root.damt,100);
It duplicates fine, however when I try to set a property of it it doesn't work. I tried these without them working.
_root[Ground["dirt"+_root.damt]]._x = 100;
_root.Ground["dirt"+_root.damt]._x = 100;
Any help would be appreciated, or any link to how the _root[] works because I couldn't find an explanation for it.
At 3/19/11 04:41 PM, salted-tator-tot wrote: I am duplicating a movieclip within a movieclip.
_root.Ground.duplicateMovieClip("ground"
,"dirt"+_root.damt,100);
It duplicates fine, however when I try to set a property of it it doesn't work. I tried these without them working.
_root[Ground["dirt"+_root.damt]]._x = 100;
_root.Ground["dirt"+_root.damt]._x = 100;
Any help would be appreciated, or any link to how the _root[] works because I couldn't find an explanation for it.
Hey, why are you set the position of the duplication after duplicated? Duplicate to the position.
ground.dirt.duplicateMovieClip("dirt"+_root.damt,1000+_root.damt,{_x:100,_y:100,somevariable:somevalue})
voila, and it's gonna duplicate it at the xy position.. otherwise at 0x0y.
"Stand up and fight! Stand up and see the sky turn bright! Fight for a better day!"
-Turisas