# Another problem regarding loadVariable - html links

**URL:** https://forum.kirupa.com/t/another-problem-regarding-loadvariable-html-links/2642
**Category:** flash
**Created:** [May 17, 2002, 5:59pm UTC](https://forum.kirupa.com/t/another-problem-regarding-loadvariable-html-links/2642 "2002-05-17T17:59:18Z")
**Posts on this page:** 11
**Page:** 1

<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: [May 17, 2002, 5:59pm UTC](https://forum.kirupa.com/t/another-problem-regarding-loadvariable-html-links/2642/1 "2002-05-17T17:59:18Z")

</div>

Hello again dear Flash mastas programmas,

Here’s the situation:  
I load a variable from a txt file.  
The dynamic text box has html turned ON.  
All characters are embeded.

Here’s the problem:  
In the txt file I have a text that contains an html link:

myVariable=Hello! This is my text! Click \<a href=http://www.uachq.cjb.net\>here\</a\> to visit my site!

However the swf displays everything up to “Click” ie before the link:

Hello! This is my text! Click

And that’s it. I heard that Flash can recognize a simple html command like \<a href\> but this seems odd to me… Why isn’t this working?

---

<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: [May 18, 2002, 2:23am UTC](https://forum.kirupa.com/t/another-problem-regarding-loadvariable-html-links/2642/2 "2002-05-18T02:23:33Z")

</div>

ahh… you’ve run into the deadly “escape” problem. Flash does recognize html links, but if you’re taking things in from a txt file you need to escape some of the characters that you are using. I’ll see if I can find out how to do that for you. It’s not too tough… it just requires you to remember a couple things when constructing the text files.

---

<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: [May 18, 2002, 9:08am UTC](https://forum.kirupa.com/t/another-problem-regarding-loadvariable-html-links/2642/3 "2002-05-18T09:08:57Z")

</div>

OK, I’ll just wait here until you find that out…

Say, aren’t you happen to talking about the html/httpencoders? like when instead of a space it’ll say something like %20 and like for other character it’ll be something like %4F or whatever?

Do you mean that I need to use such code to write the \<\> ?

---

<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: [May 18, 2002, 10:37am UTC](https://forum.kirupa.com/t/another-problem-regarding-loadvariable-html-links/2642/4 "2002-05-18T10:37:09Z")

</div>

exactly that sir. You so smart.

I’m not sure where a list of those is, but they should be the same for Flash so if you know em, use em.

---

<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: [May 18, 2002, 2:26pm UTC](https://forum.kirupa.com/t/another-problem-regarding-loadvariable-html-links/2642/5 "2002-05-18T14:26:50Z")

</div>

Yeah, I got a web-based encoder.  
But it doesn’t work. Still the same problem.

I switched the \< and \> by %3C and %3E, which are the corresponding codes but it still doesn’t work…

What am I missing here? Am I suppose to use this code on the entire variable???

---

<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: [May 19, 2002, 4:54pm UTC](https://forum.kirupa.com/t/another-problem-regarding-loadvariable-html-links/2642/6 "2002-05-19T16:54:56Z")

</div>

hmm… I’ll have to play around a little before I can figure that out. I’ll be working on such things tonight sometime… maybe I’ll have an answer by monday

---

<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: [May 19, 2002, 7:36pm UTC](https://forum.kirupa.com/t/another-problem-regarding-loadvariable-html-links/2642/7 "2002-05-19T19:36:52Z")

</div>

Just in case : Are you sure the textbox is long enough ? Did you put the multiline on ?

pom 0]

---

<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: [May 20, 2002, 3:17am UTC](https://forum.kirupa.com/t/another-problem-regarding-loadvariable-html-links/2642/8 "2002-05-20T03:17:52Z")

</div>

Yes, I tested it with other text (that doesn’t contain links) and everything works fine.

I know that the \<a href\> is the problem…

---

<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: [May 20, 2002, 6:03am UTC](https://forum.kirupa.com/t/another-problem-regarding-loadvariable-html-links/2642/9 "2002-05-20T06:03:20Z")

</div>

In my humble opinion, all you need are " and" around your url; this:

&text\_2.text=\<a href=“[http://eyezberg.free.fr/tutoriaux/tutorFR.html](http://eyezberg.free.fr/tutoriaux/tutorFR.html)”\>\<font color="#ffffff" size=“30”\>Acces direct aux tutoriaux\</a\> - **Apprenez, copiez, modifiez, utilisez…** \</font\>

works perfectly for me…(never mind the french words 😉 )

---

<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: [May 20, 2002, 7:44am UTC](https://forum.kirupa.com/t/another-problem-regarding-loadvariable-html-links/2642/10 "2002-05-20T07:44:34Z")

</div>

I’m finding that to be true also. Eyezberg is right… you don’t have to do that url encoding.

I’m not sure why you’re isn’t working. look for bugs in the a/s

---

<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: [May 20, 2002, 9:12am UTC](https://forum.kirupa.com/t/another-problem-regarding-loadvariable-html-links/2642/11 "2002-05-20T09:12:40Z")

</div>

Hey, it’s working with the “”! Thanks Eyezberg!

Man, I gotto tell ya, Flash really handles with html in a very weird way!
