PDA

View Full Version : I need Help


Unnilenni
08-31-2003, 06:56 AM
Hello!

I want to make a button. When it's pressed it'll go behind the mouse even if it's moving. I've written those actions but flash doesn't accept them:

on(press) {
if(_xmouse>getProperty(button,_x)){
setProperty(button,_x,getProperty(button,_x) + "5"}
else if(_xmouse=getProperty(button,_x){
break();
}


The second part is like this one but changing _xmouse>getproperty... for _xmouse<getproperty... and (button,_x) + "5" for (button,_x) - "5".

And then I've written the same for _y property.

So, what's wrong with it? I'd be very greatful if anyone can help me.

Thanks.

Colin Campbell
08-31-2003, 11:31 AM
on (press) {
this._x = _root._xmouse;
this._y = _root._ymouse;
updateAfterEvent ();
}