im currently making a small flash file in which you drag the hands of a character over an item to access it. The drag and drop works fine, but the collision, or droptarget, isnt working, the hand can go onto the item (in this case a large green box) but it doesnt do what i tell it to do (or what i think im telling it to do). in other words, the square doesnt change colour when i drag the hand onto it.
i’d really appreciate some help.
aaanyway.
code on button (Symbol 1 - no instance name) which is inside a MC (hand - hand)
}
on (press) {
startDrag(this);
}
on (release) {
stopDrag();
if (root.hand_droptarget == "/images") {
_root.computer.gotoandStop("green");
}
The “images” is simply a square MC i used to test the idea. Inside the MC is a stop(); on the 1st frame and on the 5th a named frame called “green” where the square changes colour.