This content has been marked as final. Show 3 replies
your refrence to "this" in left() isn't what you think it is. because you're using setInterval() to call left and you're not sending a parameter to define "this", it's undefined. you can use:
I can do it this way as well.
What I wanted to know was about moving more than 1 dynamic object at different times.
Here I move 2 objects at the same time and it works. If I wanted to distinguish the 2 objects and say move 1 more than the other or stop 1 and don't stop the other it is difficult.
var ss:Array=new Array();
set attributes or properties of each object that stores the values you need like the speed of movement or the stop condition. you then only need to pass the object and use its properties in left().