# When button is dragged button remains on same position (Need help!)

**URL:** <https://forum.kirupa.com/t/when-button-is-dragged-button-remains-on-same-position-need-help/314268>\
**Category:** Uncategorized\
**Created:** [September 23, 2010, 9:23am UTC](https://forum.kirupa.com/t/when-button-is-dragged-button-remains-on-same-position-need-help/314268 "2010-09-23T09:23:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilmyar](https://avatars.discourse-cdn.com/v4/letter/i/c77e96/32.png) [@ilmyar](https://forum.kirupa.com/u/ilmyar)\
**Post date:** [September 23, 2010, 9:23am UTC](https://forum.kirupa.com/t/when-button-is-dragged-button-remains-on-same-position-need-help/314268/1 "2010-09-23T09:23:13Z")

</div>

[FONT=“Trebuchet MS”][SIZE=“4”][COLOR=“Blue”]I am using  
Flash CS5 with AS3

I have buttons on stage, I want when a button is dragged the button should remain on same position and a line from the right side of button should connect the tip of the mouse pointer and as we move the line will adjust it self at runtime.  
After releasing drag the line should disappear.[/COLOR][/SIZE][/FONT]
