The duplicatind worked. But the fly kept duplicating all over the place, ten on the stage at any one time. Why?
ActionScript Code:
onClipEvent (enterFrame) {
if (!duplicate) {
for (i=1; i<=_root.database.noOfFly; i++) {
_root.fly.duplicateMovieClip("fly"+i, i);
_root["fly"+i]._x = Math.random()*300;
}
duplicate=true;
}
}
Also, the fly is a animating movieclip, not a standstill one. However, when i used the duplicate movieclips ( I manage to control one or two flies by directly controling its _x, and i saw this ) the duplicated movieclips were staying constantly at frame 1.