jballou
04-14-2005, 08:37 PM
I've got a drag and drop. Now, when they pick up the item to be dragged, the user has 2 choices of where they might drop it. When they drag the item over one, or the other, I want the one they are over to glow a little bit to let them know which they are over and that they may drop it there if they like. The only problem is- when they do drop- the glow stays and doesn't go out. Maybe you can help me.
onClipEvent(enterFrame) {
if (this._droptarget == "/no") {
_root.no_box.no_glow._visible = true;
_root.yes_box.yes_glow._visible = false;
}
else if (this._droptarget == "/yes") {
_root.yes_box.yes_glow._visible = true;
_root.no_box.no_glow._visible = false;
}
else {
_root.yes_box.yes_glow._visible = false;
_root.no_box.no_glow._visible = false;
}
}
that is the code on the draggable mc that makes the glow happen. I have other code that makes the mc disappear when they drop it, but the glow stays because the droptarget == "/yes" will constantly evaluate as true. What should I do?
onClipEvent(enterFrame) {
if (this._droptarget == "/no") {
_root.no_box.no_glow._visible = true;
_root.yes_box.yes_glow._visible = false;
}
else if (this._droptarget == "/yes") {
_root.yes_box.yes_glow._visible = true;
_root.no_box.no_glow._visible = false;
}
else {
_root.yes_box.yes_glow._visible = false;
_root.no_box.no_glow._visible = false;
}
}
that is the code on the draggable mc that makes the glow happen. I have other code that makes the mc disappear when they drop it, but the glow stays because the droptarget == "/yes" will constantly evaluate as true. What should I do?