# Why is this text selectable?

**URL:** <https://forum.kirupa.com/t/why-is-this-text-selectable/216501>\
**Category:** Uncategorized\
**Created:** [February 17, 2007, 3:16am UTC](https://forum.kirupa.com/t/why-is-this-text-selectable/216501 "2007-02-17T03:16:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jensou](https://avatars.discourse-cdn.com/v4/letter/j/c37758/32.png) [@jensou](https://forum.kirupa.com/u/jensou)\
**Post date:** [February 17, 2007, 3:16am UTC](https://forum.kirupa.com/t/why-is-this-text-selectable/216501/1 "2007-02-17T03:16:15Z")

</div>

why are the dynamic textfields selectable? The textfield is inside a movieclip. Once the clips are attached, why can they not act like buttons?

Thanks for the help. Second post in one day. I promise it won’t become a habit.

```
 ActionScript Code:
 [FONT=Courier New][LEFT]xmlData = [COLOR=#000000] **new** [/COLOR] [COLOR=#0000ff]XML[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];

```

xmlData.[COLOR=#0000ff]ignoreWhite[/COLOR] = [COLOR=#000000] **true** [/COLOR];  
xmlData.[COLOR=#0000ff]onLoad[/COLOR] = loadXML;  
xmlData.[COLOR=#0000ff]load[/COLOR]COLOR=#000000[/COLOR];

[COLOR=#000000] **function** [/COLOR] loadXMLCOLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]  
[COLOR=#0000ff]if[/COLOR]COLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]  
root = [COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]firstChild[/COLOR].[COLOR=#0000ff]childNodes[/COLOR];  
[COLOR=#0000ff]for[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000] **var** [/COLOR] i = [COLOR=#000080]0[/COLOR]; i \< root.[COLOR=#0000ff]length[/COLOR]; i++[COLOR=#000000])[/COLOR][COLOR=#000000]{[/COLOR]  
[COLOR=#000000] **var** [/COLOR] textMC:[COLOR=#0000ff]MovieClip[/COLOR] = nav.[COLOR=#0000ff]attachMovie[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]“text\_mc”[/COLOR], [COLOR=#ff0000]“text”[/COLOR] + i, i[COLOR=#000000])[/COLOR];  
textMC.[COLOR=#000080]txt[/COLOR].[COLOR=#0000ff]text[/COLOR] = root[COLOR=#000000][[/COLOR]i[COLOR=#000000]][/COLOR].[COLOR=#0000ff]attributes[/COLOR].[COLOR=#000080]title[/COLOR];  
textMC.[COLOR=#0000ff]\_x[/COLOR] = i \* COLOR=#000000[/COLOR];  
id = [COLOR=#0000ff]this[/COLOR].[COLOR=#000080]textMC[/COLOR][COLOR=#000000][[/COLOR]i[COLOR=#000000]][/COLOR];  
textMC[COLOR=#000000][[/COLOR]i[COLOR=#000000]][/COLOR].[COLOR=#0000ff]onPress[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]  
[COLOR=#0000ff]trace[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#000000]}[/COLOR]  
[COLOR=#000000]}[/COLOR]  
[COLOR=#808080]_//trace(root);_[/COLOR]  
[COLOR=#808080]_//trace(“loaded”);_[/COLOR]  
[COLOR=#000000]}[/COLOR]  
[COLOR=#0000ff]else[/COLOR][COLOR=#000000]{[/COLOR]  
[COLOR=#0000ff]trace[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#000000]}[/COLOR]  
[COLOR=#000000]}[/COLOR]  
[/LEFT]  
[/FONT]
