Sorry, but I don’t have Flash here at work. What I can do though is give you advice. Instead of passing the function an object property, just pass the object itself, then modify its property within the function. like so:
blue.onEnterFrame = function() {
movestop(this, 10, 500);
};
// movestop function
function movestop(thing, speed, dist) {
thing._x += speed;
};
I’ve had problems in the past with passing objects as variables, especially pointers to other instances. And like said, I don’t have flash on me right now so I can’t test that code I just gave you.
blue.onEnterFrame = function() {
movestop(this._x, 10, 500);
};
// movestop function
function movestop(thing, speed, dist) {
thing += speed;
};
The problem with that script is that you trasmit the value of this._x to the function, not the property. So if for instance this._x = 5 you’ll in fact call