Duplicate movieclip questions

Helllo,

I’m a new learner to actionscript, before i just copy and pasted code, wich wasn’t very helpfull. now i’m kinda experimenting with actionscript but written out of mind.

i made a rocket wich follows your mouse, with a neat trail that also follows your mouse.

that works fine, but now i want a row of enemies to come out of the left of the screen.
what do i add to make the enemies duplicated? if i add duplicate movieclip the enemies will come. but the rocket won’t follow the mouse and the trail won’t work.

another question: how do i make it so a movieclip is being duplicated every 5 seconds or so? not on every frame?

thanks in advance , file is attached

looks like wrong file but, it seems enemys you are trying to createare the same movieclip as the player itself, and since you have most probably put AS in the mc instead of frame…the code is colliding with eachother. From now on, try to put all you code on the timeline, and preferably at one place.

Also to set gap use setInterval

intervalID=setInterval(function_name,time in between executions)

ah yes, sorry here is the right file.

94 kb , so heres a rar http://upl.iwgupl.info/uploads/5oys6vv/randomness.rar

and the set interval, should it be something like this?:

ball=setInterval(function_ball,4)