PDA

View Full Version : drop target


sebastian
11-20-2001, 08:22 PM
i am doing the drop target tutorial, and there is a little bit of code i don't get.

on (release) {
this.stopDrag();
if (this._droptarget == "/box") {
_root.box.play();
}

what is the forward slash in front of the word box for? why inside the string?
thanks

Jesse
11-21-2001, 04:30 AM
for reasons of backward compatibility (with Flash 4) _droptarget returns the full path to an object in Flash 4 notation, which, (if you see the paths tutorial), involves slashes rather than dots...