# getURL after clicking dynamic text

**URL:** https://forum.kirupa.com/t/geturl-after-clicking-dynamic-text/181992
**Category:** flash
**Created:** [March 14, 2006, 7:35pm UTC](https://forum.kirupa.com/t/geturl-after-clicking-dynamic-text/181992 "2006-03-14T19:35:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Poco](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@Poco](https://forum.kirupa.com/u/Poco)
#### Post date: [March 14, 2006, 7:35pm UTC](https://forum.kirupa.com/t/geturl-after-clicking-dynamic-text/181992/1 "2006-03-14T19:35:16Z")

</div>

Hello guys,

Is it possible to open a url after clicking dynamic text? I have some fields which I filled from XML, now I would like to add url to them (for they worked like a link), but somehow I can’t. Or is the only possibility to “cover them” with MCs which will get onRelease?  
So if I have a node like:

```auto
<node description="Should be a link" url="http://something.com />

```

And now I fill the dynamic textfield like:

```auto
mytext_txt.text = ....childNodes*.attributes.description;

```

… how can I add the url to it in the easiest way?

Thanks a lot!

Poco

---

<div class="post-metadata">

### Author: ![daleth](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/daleth/32/1096_2.png) [@daleth](https://forum.kirupa.com/u/daleth)
#### Post date: [March 18, 2006, 9:41pm UTC](https://forum.kirupa.com/t/geturl-after-clicking-dynamic-text/181992/2 "2006-03-18T21:41:31Z")

</div>

dudes… use CSS. Attach a css stylesheet to the textField. It works like a charm and makes things a lot easier to change and customize.

---

<div class="post-metadata">

### Author: ![Uli](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@Uli](https://forum.kirupa.com/u/Uli)
#### Post date: [March 18, 2006, 9:59pm UTC](https://forum.kirupa.com/t/geturl-after-clicking-dynamic-text/181992/3 "2006-03-18T21:59:06Z")

</div>

well in the case of underlining a clicked link, you still need to use a function to replace the CSS ‘value’ for the piece of text… So you’d still need a function, in our case CSS is no miracle, dude.

---

<div class="post-metadata">

### Author: ![fps\_gamergirl](https://avatars.discourse-cdn.com/v4/letter/f/48db29/32.png) [@fps\_gamergirl](https://forum.kirupa.com/u/fps_gamergirl)
#### Post date: [March 21, 2006, 1:27am UTC](https://forum.kirupa.com/t/geturl-after-clicking-dynamic-text/181992/4 "2006-03-21T01:27:35Z")

</div>

So, if basically you wanted to click on a text button and have it open a browser window, the code is as follows(if anyone hasn’t told you yet)

on (release) {getURL(“[http://www.thisistheurl.com](http://www.thisistheurl.com)”);

}
