on (press) {
this.startDrag( ) ;
}
on (release) {
this.stopDrag( ) ;
}
What weve told Flash is that when the mouse button presses down on the puzzle piece, it should attach to the cursor and follow it until the mouse button releases, at which point it should stop. This is very similar to the drag-and-drop pieces on the holiday snowman animation.
Using this to make sure that the actionscript references the particular movie clip that its attached to rather than a specific instance name will make it easier to add the drag-and-drop commands to the other pieces of your puzzle, because you can copy-paste the scripts in their entirety without any modifications.
Click here to see my example. I did mine in a hurry, so the pieces dont interlock perfectly, but youll want to take more care with yours.


