^

Friday, September 2, 2011

Drag and Drop Action Script 2.0


Hi, guys...

In this post, i want to share about how to make Drag and Drop in Flash Action Script 2.0 with ease. Drag and Drop in Flash is quite simple because Flash has built in commands for drag and drop, and we will use these. /hmm

First, create new project and then make new movie clip. You can make new movie clip by pressing CTRL+F8 and choose movie clip.



Insert your movie clip to your Scene. And click it, then change instance name. You can name it anything, in this case, i name it "movBox".


Now, click the frame where your movie clip at. Then press F9 to open Action Script window. Type this code, remember, change movBox to your movie clip instance name.

movBox.onMouseDown = function() {
this.startDrag();
}

movBox.onRelease = function() {
this.stopDrag();
}


You can download the source files below:



Keyword (Indonesia) : tutorial flash membuat drag an drop di flash action script 2.0
Image : psdgraphics.com

No comments:

Post a Comment