At 4/14/09 03:52 PM, Mariahchu wrote:
I have an Adobe Flash CS4 program, and I needs the code that makes items dragable. I'm trying to make a dress-up game thingy. I found one code, but it didn't do anything when I tried testing it. Plz help~ :c
UP BUP BUP!
You didn't put in the release script..
on(press){
_x = _root._xmouse;
_y = _root._ymouse;
startDrag(this);
}
on(release){
this._x = this._x
this._y = this._y
// Don't know if those are needed.
stopDrag(this);
}