# Hyperlinks in Flash

**URL:** <https://forum.kirupa.com/t/hyperlinks-in-flash/17177>\
**Category:** Uncategorized\
**Created:** [April 2, 2003, 4:06am UTC](https://forum.kirupa.com/t/hyperlinks-in-flash/17177 "2003-04-02T04:06:27Z")\
**Posts on this page:** 20\
**Page:** 2

<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:** [April 7, 2003, 2:43am UTC](https://forum.kirupa.com/t/hyperlinks-in-flash/17177/21 "2003-04-07T02:43:52Z")

</div>

i didn’t have to…

as you know, this question is asked every now and then so i bookmarked 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:** [April 7, 2003, 2:45am UTC](https://forum.kirupa.com/t/hyperlinks-in-flash/17177/22 "2003-04-07T02:45:28Z")

</div>

smart idea 😛

Oh yeah, as another tip that I found out the hard way… HTML formatted text does NOT work when the dynamic textbox is being masked… 😠

---

<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:** [April 7, 2003, 2:47am UTC](https://forum.kirupa.com/t/hyperlinks-in-flash/17177/23 "2003-04-07T02:47:51Z")

</div>

yup… i read the whole thread. it seriously sucks!! :-\

---

<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:** [April 7, 2003, 2:49am UTC](https://forum.kirupa.com/t/hyperlinks-in-flash/17177/24 "2003-04-07T02:49:51Z")

</div>

even if embedded? :q:

---

<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:** [April 7, 2003, 2:53am UTC](https://forum.kirupa.com/t/hyperlinks-in-flash/17177/25 "2003-04-07T02:53:19Z")

</div>

You HAVE to embed the font for it to work when masked.

I created a thread on this in the MX section a few days ago. It is quite a weird bug. I contacted Macromedia, but they never got back to 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:** [April 7, 2003, 2:55am UTC](https://forum.kirupa.com/t/hyperlinks-in-flash/17177/26 "2003-04-07T02:55:08Z")

</div>

i know 🙂  
my question is, if you had an html formatted text with the font embedded, and it was masked, would it show up?

---

<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:** [April 7, 2003, 2:59am UTC](https://forum.kirupa.com/t/hyperlinks-in-flash/17177/27 "2003-04-07T02:59:32Z")

</div>

Oh… Ummmmm, crap, we went over that in the thread. I can’t remember if it was the mask that messed it up, or the embedding of the font that messed it up…

::searches for thread::

---

<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:** [April 7, 2003, 3:00am UTC](https://forum.kirupa.com/t/hyperlinks-in-flash/17177/28 "2003-04-07T03:00:35Z")

</div>

Here it is… read up here…

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=19268](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=19268)

---

<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:** [April 7, 2003, 3:00am UTC](https://forum.kirupa.com/t/hyperlinks-in-flash/17177/29 "2003-04-07T03:00:40Z")

</div>

::finds the thread :P::

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=19268](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=19268)

**edit.** oops!! 😛 😛

---

<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:** [April 7, 2003, 3:01am UTC](https://forum.kirupa.com/t/hyperlinks-in-flash/17177/30 "2003-04-07T03:01:34Z")

</div>

HA!!! 😛

---

<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:** [April 7, 2003, 3:09am UTC](https://forum.kirupa.com/t/hyperlinks-in-flash/17177/31 "2003-04-07T03:09:07Z")

</div>

lol…

> 

Alright I removed all HTML formatting from my file and it all worked fine… BUT then I added an A HREF tag to my first lines of text. And everything STILL worked PERFECTLY fine… and get this… THE A HREF WORKED AS WELL!!!

So since the A HREF tag worked I was happy and tried to switch it to a bold or italic or other font formatting tag…

its confusing… :crazy:

---

<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:** [April 7, 2003, 3:10am UTC](https://forum.kirupa.com/t/hyperlinks-in-flash/17177/32 "2003-04-07T03:10:56Z")

</div>

So was the situation :crazy:

A HREF tags work, but thats about 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:** [April 7, 2003, 3:53am UTC](https://forum.kirupa.com/t/hyperlinks-in-flash/17177/33 "2003-04-07T03:53:38Z")

</div>

I have a another ? about this topic ya. from Kax.  
I have index1.html, index2.html, index3.html files. nad 1 main.swf files. And in main.swf 1 input text and 1 button. If i enter 1 into input text and click button load index.html or i enter 2 load index.html etc…  
HOw can I make this ?  
HELP 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:** [April 7, 2003, 4:02am UTC](https://forum.kirupa.com/t/hyperlinks-in-flash/17177/34 "2003-04-07T04:02:49Z")

</div>

You can’t load .html documents into Flash.

---

<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:** [April 8, 2003, 1:35am UTC](https://forum.kirupa.com/t/hyperlinks-in-flash/17177/35 "2003-04-08T01:35:20Z")

</div>

Ooh, So can i open that html files in internet browser using flash.

---

<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:** [April 8, 2003, 3:22am UTC](https://forum.kirupa.com/t/hyperlinks-in-flash/17177/36 "2003-04-08T03:22:20Z")

</div>

Yeah, use getURL(“url”, “location”)

For url obviously put the url to your file, and location can be \_parent, \_top, \_blank, or the name of your frame you want the page to load into.

---

<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:** [April 8, 2003, 6:50am UTC](https://forum.kirupa.com/t/hyperlinks-in-flash/17177/37 "2003-04-08T06:50:51Z")

</div>

Here is just what i mean: i have these  
main swf contain:  
input text: var=mytext  
button : instance=mybutton

index1.html  
index2.html  
index3.html

And if i enter a number between 1-3, main.swf opens html which is corresponded to the entered number.

and here is code which i used

whichpage =mytext;  
mybutton.onPress = function () {  
getURL(“index”+whichpage+".html");  
};

And whichpage doesn’t take mytext’s number. SO what can i 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:** [April 8, 2003, 6:53am UTC](https://forum.kirupa.com/t/hyperlinks-in-flash/17177/38 "2003-04-08T06:53:38Z")

</div>

Give your input text the INSTANCE name of myText and call it with…

var whichpage = myText.text;

And put that INSIDE the onPress handler (so it gets updated everytime you press the button)

I think thats the only thing I can see wrong with the above. As long as whichpage is a number, it should work fine.

---

<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:** [April 8, 2003, 7:10am UTC](https://forum.kirupa.com/t/hyperlinks-in-flash/17177/39 "2003-04-08T07:10:32Z")

</div>

Ooh, sorry, I can’t understand that all. And my action doesn’t work  
Can U explain me more about 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:** [April 8, 2003, 3:57pm UTC](https://forum.kirupa.com/t/hyperlinks-in-flash/17177/40 "2003-04-08T15:57:05Z")

</div>

Make sure your textbox has the INSTANCE name (\<I\>not\</I\> var name, they are different) of “myText” (no quotes). Then do this…

[AS]mybutton.onPress = function() {  
whichpage = myText.text;  
getURL(“index”+whichpage+".html");  
};[/AS]

If I am understanding what you want to do, you want to pull the number out of the input textbox and open that page.

If so, then that is the way to do it, if not, then I think you need to explain better because I am not sure I really understand.

[Previous page](https://forum.kirupa.com/t/hyperlinks-in-flash/17177.md?page=1)

[Next page](https://forum.kirupa.com/t/hyperlinks-in-flash/17177.md?page=3)
