You function Duck() instanciates an enterFrame function that actually creates the duck instances on the stage. Once begun, there is nothing telling it to stop creating new ducks. You might want to add a for loop that counts up to the number of ducks that you want and then kills the enterframe function. I don't know why your x and y values are resetting to 0.
↧