HOW TO MAKE A DRAG AND DROP IN FLASH

First create a new flash document. Then make the character you want to drag and drop. Convert it to a movieclip and then on the property bar make the instance name.

Myobject_mc

Click on the movieclip and copy these actionscript into it.


Myobject_mc.onPress = function(){
startDrag(this);
}
Myobject_mc.onRelease = function(){
stopDrag();
}

0 comments:

Post a Comment

Warning! Do not use swear words / slangs when posting.

Popular Posts