# Drag and drop using targets

**URL:** <https://forum.kirupa.com/t/drag-and-drop-using-targets/64693>\
**Category:** Uncategorized\
**Created:** [September 18, 2004, 11:24pm UTC](https://forum.kirupa.com/t/drag-and-drop-using-targets/64693 "2004-09-18T23:24:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoip](https://avatars.discourse-cdn.com/v4/letter/z/5daacb/32.png) [@zoip](https://forum.kirupa.com/u/zoip)\
**Post date:** [September 18, 2004, 11:24pm UTC](https://forum.kirupa.com/t/drag-and-drop-using-targets/64693/1 "2004-09-18T23:24:51Z")

</div>

Why dosent this code work in falsh mx 2004?

```auto
on (press) {
	startDrag("_root.green");
}
on (release) {
	stopDrag();
	if (_root.green._droptarget == "/computer") {
		_root.computer.gotoandStop("green");
			}

```

the start dragging part works  
and the stop dragging part works  
but all the if-part dosen’t work…  
It works in flask mx, bur I can’t figure out what to change to make it work in flash mx 2004

heeeelp
