# Hyperlink in scroller

**URL:** <https://forum.kirupa.com/t/hyperlink-in-scroller/6491>\
**Category:** flash\
**Created:** [October 8, 2002, 10:00pm UTC](https://forum.kirupa.com/t/hyperlink-in-scroller/6491 "2002-10-08T22:00:49Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![An\_D](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@An\_D](https://forum.kirupa.com/u/An_D)\
**Post date:** [October 8, 2002, 10:00pm UTC](https://forum.kirupa.com/t/hyperlink-in-scroller/6491/1 "2002-10-08T22:00:49Z")

</div>

Erm I can make a scroller, as shown in the tutorials on kirupa. But i want to put hyperlinks in it. When you click on some text it takes u to another page.

Can anyone show me how :q: Thanks in advance.=) :cool: 🙂 :bandit:

---

<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:** [October 8, 2002, 10:03pm UTC](https://forum.kirupa.com/t/hyperlink-in-scroller/6491/2 "2002-10-08T22:03:00Z")

</div>

Assuming you used this tutorial…

[http://www.kirupa.com/developer/mx/dynamic\_scroller.asp](http://www.kirupa.com/developer/mx/dynamic_scroller.asp)

Change the code to look like this…

```auto
loadText = new loadVars();
loadText.load("kirupa.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
                scroller.html = true;
		scroller.htmlText = this.kirupatext;
};

```

This allows you to use HTML text format tags, and you can even use the HTML link tag.

---

<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:** [October 8, 2002, 10:14pm UTC](https://forum.kirupa.com/t/hyperlink-in-scroller/6491/3 "2002-10-08T22:14:23Z")

</div>

actually I ment the [http://www.kirupa.com/developer/mx/textscroller.asp](http://www.kirupa.com/developer/mx/textscroller.asp) thread.

the one where u can change it through flash. Cos i have tonnes of folders for efficiency in my website and if i did a seperate .txt I’d have to do em all.

unless u can link to the .txt a level up on folders? e.g.  
flash= /parent/domain/flash.swf  
text = …/parent/info.txt

is this possible or my mind going haywire?

---

<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:** [October 8, 2002, 10:19pm UTC](https://forum.kirupa.com/t/hyperlink-in-scroller/6491/4 "2002-10-08T22:19:36Z")

</div>

I think it might be possible. If you can’t go back like that, then just supply a direct link to it and it should work.

With the tutorial you used, you would have to add all that text into actionscript, which take up A LOT of lines and work. So I recommend the tutorial I showed you.

---

<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:** [October 9, 2002, 9:41am UTC](https://forum.kirupa.com/t/hyperlink-in-scroller/6491/5 "2002-10-09T09:41:23Z")

</div>

Any chance of changng the colours of the scrollbr? or use movieclips/buttons for 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:** [October 9, 2002, 5:04pm UTC](https://forum.kirupa.com/t/hyperlink-in-scroller/6491/6 "2002-10-09T17:04:48Z")

</div>

Basic Crash course in CSS for Flash…

```auto
myStyle = new FStyleFormat();
myStyle.face = 0x0287C5;
myStyle.background = 0x0287C5;
myStyle.arrow = 0xEEEEEE;
myStyle.scrollTrack = 0x0287C5;
myStyle.highlight = 0x0287C5;
myStyle.darkshadow = 0x0287C5;
myStyle.addListener(scrollbar);

```

Of course change the colors, I just picked colors out of mid air and threw them in there. Experiment with each color to see what it does.

This assumes you gave your scrollbar component the instance name of “scrollbar” (without quotes).

---

<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:** [October 9, 2002, 5:16pm UTC](https://forum.kirupa.com/t/hyperlink-in-scroller/6491/7 "2002-10-09T17:16:27Z")

</div>

im confused there cos its css.

which means its in the html not the flash, right?

i may sound really thick 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:** [October 9, 2002, 5:28pm UTC](https://forum.kirupa.com/t/hyperlink-in-scroller/6491/8 "2002-10-09T17:28:55Z")

</div>

HAHA, no, its not really CSS, it is fake CSS for Flash. You add it to your frame and give your component an instance name. And at the bottom where you see addListener is where you can add listeners of that style.

---

<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:** [October 9, 2002, 9:21pm UTC](https://forum.kirupa.com/t/hyperlink-in-scroller/6491/9 "2002-10-09T21:21:08Z")

</div>

thx u 0wn at 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:** [October 9, 2002, 9:25pm UTC](https://forum.kirupa.com/t/hyperlink-in-scroller/6491/10 "2002-10-09T21:25:37Z")

</div>

Hehe, not really, but thanks =)

I am glad I could help you 🙂

---

<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:** [October 9, 2002, 9:40pm UTC](https://forum.kirupa.com/t/hyperlink-in-scroller/6491/11 "2002-10-09T21:40:34Z")

</div>

well i have a problem, there are two fields missing that i need, I found one. this is my HTML version which i want to replicate but slight variety:

\<style\>  
BODY{  
scrollbar-face-color:#FFCC00;  
scrollbar-arrow-color:#000000;  
scrollbar-track-color:#CC3333;  
scrollbar-shadow-color:#000000;  
scrollbar-highlight-color:#000000;  
scrollbar-3dlight-color:#000000;  
scrollbar-darkshadow-Color:#000000;  
}  
\</style\>

My css in flash is

myStyle = new FStyleFormat();  
myStyle.face = 0xFFCC00;  
myStyle.background = 0x3399FF;  
myStyle.arrow = 0x000000;  
myStyle.scrollTrack = 0x3399FF;  
myStyle.highlight = 0x000000;  
myStyle. \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*= 0x000000;  
myStyle.shadow = 0x000000;  
myStyle.darkshadow = 0x000000;  
myStyle.addListener(scrollbar);

the \*\*\*\*\*\*\*\*\*\*\*\*\*\* part is where I want the 3d light in  
[scrollbar-3dlight-color:#000000;]  
thats in the html, but 3d-light wont work. neither will 3dlight

whats the command?

---

<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:** [October 9, 2002, 9:51pm UTC](https://forum.kirupa.com/t/hyperlink-in-scroller/6491/12 "2002-10-09T21:51:46Z")

</div>

myStyle.highlight3D = 0x000000;
