This content has been marked as final.
Show 2 replies
-
1. Re: How to stop the code adding movie clips
Rob Dillon Aug 8, 2014 1:17 PM (in response to rahex)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.
-
2. Re: How to stop the code adding movie clips
rahex Aug 9, 2014 1:03 AM (in response to Rob Dillon)Thank you Rob for your comment.
I finally separated the code between timeline and class file and got it working this way.
The original thought to do it all in a class file was above my knowledge level.


