Hi,
I’ve been working on this for hours now, checking and rechecking, but can’t see what I’ve done wrong. It should be so simple, even for an AS3 beginner like me.
Simple Christmas Dress-up drag’n’drop. I’ve set up all the draggable items on the stage and have just started adding code. “santaboots_draggable_mc” will drag, but won’t drop.
One frame, every object instance on a different layer.
Frame 1 Actions layer:
santaboots_draggable_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
santaboots_draggable_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
function pickUp(event:MouseEvent):void {
event.target.startDrag(true);
}
function dropIt(event:MouseEvent):void {
event.target.stopDrag();
}
santaboots_draggable_mc.buttonMode = true;
Movie clip instance name checked as “santaboots_draggable_mc”, an instance of “santaboots_mc”. No instance names yet set up for other objects.
I’m trying with this, I really am. The code is from a simple tutorial which works fine. Hugely frustrated. Hope someone can help.
Thanks,
Andy