# Dynamic text link

**URL:** https://forum.kirupa.com/t/dynamic-text-link/29273
**Category:** flash
**Created:** [August 25, 2003, 5:22am UTC](https://forum.kirupa.com/t/dynamic-text-link/29273 "2003-08-25T05:22:01Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![Zeroc](https://avatars.discourse-cdn.com/v4/letter/z/f0a364/32.png) [@Zeroc](https://forum.kirupa.com/u/Zeroc)
#### Post date: [August 25, 2003, 5:22am UTC](https://forum.kirupa.com/t/dynamic-text-link/29273/1 "2003-08-25T05:22:01Z")

</div>

How do I link to another frame from a dynamic text?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 25, 2003, 5:37am UTC](https://forum.kirupa.com/t/dynamic-text-link/29273/2 "2003-08-25T05:37:50Z")

</div>

what exactly are you trying to do more info would be helpfull

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 25, 2003, 5:40am UTC](https://forum.kirupa.com/t/dynamic-text-link/29273/3 "2003-08-25T05:40:22Z")

</div>

Use the asfunction protocol.

Run a search for _asfunction_ in this section of the forum, you’ll find a couple of threads on how to use it. 😉

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 25, 2003, 5:44am UTC](https://forum.kirupa.com/t/dynamic-text-link/29273/4 "2003-08-25T05:44:50Z")

</div>

well im not sure if this will work or not, but i dont see any reason it shouldnt?

in your dynamic text’s properties box, select the little button that looks like this " \<\>" to render the text as html…then you need to add a url tag around your linked text that looks something like this:

\<**a href=“[http://linkhere.com](http://linkhere.com)” target=“frameNameHere”\>link text\<**/a\>

that should do it.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 25, 2003, 5:45am UTC](https://forum.kirupa.com/t/dynamic-text-link/29273/5 "2003-08-25T05:45:27Z")

</div>

For html framesets (edited from previous post)

In your flash document, set your text to dynamic in properties, select the “\<\>” option (html), then add your URL. Next choose your target frame which would NOT be one of those listed options like \_self, etc. but the name you gave to the target frame when you created your frameset: like “kirupa” for example (as in the frames tutorial ) Enter this name in the target field. This will cause the link in one frame to open in another frame.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 25, 2003, 5:55am UTC](https://forum.kirupa.com/t/dynamic-text-link/29273/6 "2003-08-25T05:55:22Z")

</div>

I might have misunderstood the question… I thought he wanted to go to another frame in the Flash movie! 😛

…Or maybe I did understand and you all got it wrong? :bad:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 25, 2003, 5:58am UTC](https://forum.kirupa.com/t/dynamic-text-link/29273/7 "2003-08-25T05:58:55Z")

</div>

I just want to jump to that frame on the timeline, not open any website.

I have named the frame now but dont know how to link to it.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 25, 2003, 6:00am UTC](https://forum.kirupa.com/t/dynamic-text-link/29273/8 "2003-08-25T06:00:56Z")

</div>

Kode was right =)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 25, 2003, 6:08am UTC](https://forum.kirupa.com/t/dynamic-text-link/29273/9 "2003-08-25T06:08:21Z")

</div>

I knew it!! 😛

Ok… only because I was right, I’ll tell you exactly what to do. 😉

Create a dynamic TextField, check _Render text as HTML_ and give it an instance name in the Properties Panel.  
Go to the Frame actions and paste this code:  
[AS]TextFieldInstanceName.htmlText = “\<a href=‘as\*\*\*\*function:gotoAndPlay,frameNumberOrLabelHere’\>go to frame X\</a\>”;[/AS]  
Replace _TextFieldInstanceName_ with the instance name given to your TextField, and _frameNumberOrLabelHere_ with the frame number or label.

Or create a static TextField, and paste this code in the URL link field in the Properties Panel:  
[AS]as\*\*\*\*function:gotoAndPlay,frameNumberOrLabelHere[/AS]  
Obviously, you can replace gotoAndPlay with gotoAndStop depending on what you want to do. =)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 25, 2003, 6:09am UTC](https://forum.kirupa.com/t/dynamic-text-link/29273/10 "2003-08-25T06:09:31Z")

</div>

Thanks for the clarity: frames, links, dynamic text…it all starts to blur… 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 25, 2003, 6:13am UTC](https://forum.kirupa.com/t/dynamic-text-link/29273/11 "2003-08-25T06:13:56Z")

</div>

…It was clear enough for me. 😛

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 25, 2003, 6:17am UTC](https://forum.kirupa.com/t/dynamic-text-link/29273/12 "2003-08-25T06:17:28Z")

</div>

yeah!! it works, i modified your code a little so it seems like this now:

\_root.spela = ‘\<a href=“asfunction:gotoAndStop,spelet”\>Spela\</a\>’;

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 25, 2003, 6:21am UTC](https://forum.kirupa.com/t/dynamic-text-link/29273/13 "2003-08-25T06:21:02Z")

</div>

Yeah, the forum messed up the code a bit… it’s fixed now. =)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 25, 2003, 6:21am UTC](https://forum.kirupa.com/t/dynamic-text-link/29273/14 "2003-08-25T06:21:37Z")

</div>

touche

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 25, 2003, 6:29am UTC](https://forum.kirupa.com/t/dynamic-text-link/29273/15 "2003-08-25T06:29:17Z")

</div>

oops…so that i misunderstand ya…but nice technique kode…i didnt know that! thanx.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 25, 2003, 6:31am UTC](https://forum.kirupa.com/t/dynamic-text-link/29273/16 "2003-08-25T06:31:08Z")

</div>

No problem, blackpulp. =)
