# Action for a draggable button with droptarget

**URL:** https://forum.kirupa.com/t/action-for-a-draggable-button-with-droptarget/133615
**Category:** Uncategorized
**Created:** [January 10, 2005, 4:08pm UTC](https://forum.kirupa.com/t/action-for-a-draggable-button-with-droptarget/133615 "2005-01-10T16:08:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tamarindous](https://avatars.discourse-cdn.com/v4/letter/t/d78d45/32.png) [@tamarindous](https://forum.kirupa.com/u/tamarindous)
#### Post date: [January 10, 2005, 4:08pm UTC](https://forum.kirupa.com/t/action-for-a-draggable-button-with-droptarget/133615/1 "2005-01-10T16:08:04Z")

</div>

I have a draggable button , and I need to go to “scene1” when the draggable button is dropped into a droptarget (“dentro1”)  
But it doesn´t work with this action (gotoAndPlay), it works with load movie, or get Url. It only goes inside de droptarget (called “dentro1”)

This is the code of the draggable button:

on (rollOver) {  
startDrag(root\_draggablebutton, true);  
}  
on (release) {  
if (\_droptarget eq “/dentro1”) {  
{  
gotoAndPlay(“scene1”, 1);  
}  
}  
stopDrag();  
}

thank you
