# Selecting text without intefering with surrounding elements

**URL:** <https://forum.kirupa.com/t/selecting-text-without-intefering-with-surrounding-elements/225321>\
**Category:** flash\
**Created:** [May 10, 2007, 5:43pm UTC](https://forum.kirupa.com/t/selecting-text-without-intefering-with-surrounding-elements/225321 "2007-05-10T17:43:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stediamond](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@stediamond](https://forum.kirupa.com/u/stediamond)\
**Post date:** [May 10, 2007, 5:43pm UTC](https://forum.kirupa.com/t/selecting-text-without-intefering-with-surrounding-elements/225321/1 "2007-05-10T17:43:08Z")

</div>

Evening Guys,

I was wondering if I could grab a hand on a problem.

I’m in the process of putting together a project and at the moment I’ve created an interface where the user can add instances within a movieclip and change text.

The problem occurs when the user tries to highlight a text within an input box and the whole interface would move.

**Main Frame Code**

```auto

interface_mc.onMouseDown = function(){
	startDrag(this);
}
interface_mc.onMouseUp = function(){
	stopDrag();
}

```

**Generated Obj Code (First Frame)**

```auto

tooltip.onPress = function() {
	startDrag(this._parent,false,-540,-412,540,412);
        // used to constrict element within the interface_mc
};
tooltip.onRelease = function() {
	stopDrag();
};

```

I was wondering if someone wouldn’t mind taking a look at letting me know where I’ve gone wrong, I’ve been banging my head against this laptop all day trying to think of a workaround but my knowledge isn’t as good as some of you guys on here 🙂

Thanks,  
Steve
