|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
duplicateMovieClip help
I cant understand this and if you all could explain I would appriciate. every other mouseDown, the oldest clip dissappears?
why? I want all clips to remain, is my logic flawed? I attached the .fla file it is very small.... |
|
#2
|
|||
|
|||
|
Hi, nope your logic doesnt seem flawed. I would of thought what you had would work. To get around the problem you can set i = 0 in root kf1. Then change your mouseDown code to:
Code:
onClipEvent (mouseDown) {
_root.i++;
duplicateMovieClip(_root.green, "green"+_root.i, _root.i);
_root["green"+_root.i]._x = _root._xmouse;
_root["green"+_root.i]._y = _root._ymouse;
}
Just using i from root instead. I'm not sure why but when you hit around the 11th and 12th the movie begins to chug a bit. Maybe I have too much other stuff open though. |
|
#3
|
||||
|
||||
|
Yep that did it. I also put the actionscript in the main movie to prevent the chug. Thanks!
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > duplicateMovieClip help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|