# Drag and drop

**URL:** https://forum.kirupa.com/t/drag-and-drop/116432
**Category:** Uncategorized
**Created:** [July 18, 2004, 12:57am UTC](https://forum.kirupa.com/t/drag-and-drop/116432 "2004-07-18T00:57:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![abraxas](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@abraxas](https://forum.kirupa.com/u/abraxas)
#### Post date: [July 18, 2004, 12:57am UTC](https://forum.kirupa.com/t/drag-and-drop/116432/1 "2004-07-18T00:57:12Z")

</div>

Hello!

I need help with drag and drop functions. I have done a animation like a windows window that i want to do so i can drag and drop it. I think the window should have a code like this:

[color=blue]**on (press) {**[/color]  
[color=blue]**tellTarget(“Fonster”){**[/color]  
[color=blue]**gotoAndPlay(“1drag”)**[/color]  
[color=blue] **}** [/color]  
[color=blue]**startDrag ("\_root.Fonster");**[/color]  
[color=blue] **}** [/color]

[color=blue]**on (release) {**[/color]  
[color=blue]**tellTarget(“Fonster”){**[/color]  
[color=blue]**gotoAndPlay(“1drop”)**[/color]  
[color=blue] **}** [/color]  
[color=blue]**stopDrag ("\_root.Fonster");**[/color]  
[color=blue] **}** [/color]

[left][color=red]::The tellTarget i have in the code is an effect::[/color][/left]  
But it aint working. Someone know what the problem is?
