PDA

View Full Version : drop target problem


NetScamp
05-29-2003, 05:02 AM
As an early part of the testing I just want to have a text box say one thing if I am over one clip, and say another if I am over the other clip.

It seem to sort of work, sometimes ? Very sloppy.

on (press) {
startDrag(this, false, this._x, 150, this._x, 420);
return false;
}

on (release) {
stopDrag ();

if (eval(this._droptarget) == _root.boxy0) {
_root.billboard.text = "upper";
}

if (eval(this._droptarget) == _root.boxy1) {
_root.billboard.text = "lower";
}


}

No errors are given.

farafiro
05-29-2003, 12:59 PM
on (press) {
startDrag(this, false, this._x, 150, this._x, 420);
return false;
}
on (release) {
stopDrag ();
if (this.hitTest(_root.boxy0)) {
_root.billboard.text = "upper";
}

if (this.hitTest( _root.boxy1)) {
_root.billboard.text = "lower";
}
}