Friday, October 19, 2007

Create a drag-drop flash

Step 1
Start by creating a 250x150px document in flash. Frame rate set to 32fps (Frames per second).

Step 2
Draw something, and convert it into a Movie Clip (Ctrl+A+F8).

Step 3
Click once on that new made Movie Clip to select it, Open the Action Script Panel (F9) and Paste this script:
on (press) {
startDrag(this);
}
on (release) {
stopDrag();
}
on (press) {
startDrag(this);
}
on (release) {
stopDrag();
}

No comments: