# Drag n drop in flash 5

**URL:** <https://forum.kirupa.com/t/drag-n-drop-in-flash-5/250550>\
**Category:** Uncategorized\
**Created:** [January 30, 2008, 1:32pm UTC](https://forum.kirupa.com/t/drag-n-drop-in-flash-5/250550 "2008-01-30T13:32:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iqbalashraf](https://avatars.discourse-cdn.com/v4/letter/i/f9ae1b/32.png) [@iqbalashraf](https://forum.kirupa.com/u/iqbalashraf)\
**Post date:** [January 30, 2008, 1:32pm UTC](https://forum.kirupa.com/t/drag-n-drop-in-flash-5/250550/1 "2008-01-30T13:32:37Z")

</div>

hi  
action script in flash 5.  
making a game for kid so he can drag drop numbers on each squar.  
if there are many block arange in a line he should place number 1 2 3 and so on in the cerroct block,i’m able to do that but i want to know how to make action script so if he dropndrop the number in the wrong block it should go off screen or to a block from where it cannot be drag again.  
i have numbers on screen which are button in a moviclip so they can be drag to the squar block and when placed in correct square block it stay there and word CERROCT is displayed for a few second.  
action script for above  
on (press) {  
startDrag ("/1 but", true);  
}  
on (release) {  
stopDrag ();  
if (getProperty("/1 but", \_droptarget) eq “/sq1”) {  
tellTarget ("/status") {  
gotoAndPlay (“correct”);  
}  
} else {  
setProperty ("/1 but", \_x, “20”);  
setProperty ("/1 but", \_y, “360”);  
}  
}  
NEED actionscript if the number is droped on the wrong block it should go to  
a place or a block which will have all wrong droped numbers and they should not be active again or could not be able to be drag again from there.  
experts pl help.  
iqs
