# Text within a scroll pane

**URL:** https://forum.kirupa.com/t/text-within-a-scroll-pane/26952
**Category:** flash
**Created:** [July 28, 2003, 5:26pm UTC](https://forum.kirupa.com/t/text-within-a-scroll-pane/26952 "2003-07-28T17:26:20Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![grandsp5](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@grandsp5](https://forum.kirupa.com/u/grandsp5)
#### Post date: [July 28, 2003, 5:26pm UTC](https://forum.kirupa.com/t/text-within-a-scroll-pane/26952/1 "2003-07-28T17:26:20Z")

</div>

When I load text into a scroll pane, it cannot be controlled by the commands I use on the scroll pane. For example, if I change tha alpha on the pane to 0, the text is still visible. It is also visible outside the scroll pane. Is there any way around this? I need to load in both text and pictures into a panel where I can control them.

---

<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: [July 28, 2003, 5:35pm UTC](https://forum.kirupa.com/t/text-within-a-scroll-pane/26952/2 "2003-07-28T17:35:45Z")

</div>

If you are loading it from a .txt file, you have to use actionscripting on the central timeline. make a new layer named actions, then insert a keyframe in the first frame. then add this code:

[AS]loadText = new loadVars();  
loadText.load(“kirupa.txt”);  
//creating the loadVarsText function  
loadText.onLoad = function() {  
scroller.text = this.kirupatext;  
};  
globalStyleFormat.textColor = 0x000000;  
globalStyleFormat.arrow = 0xFFFFFF;  
globalStyleFormat.face = 0x000000;  
globalStyleFormat.shadow = 0x000000;  
globalStyleFormat.darkshadow = 0x000000;  
globalStyleFormat.highlight = 0x000000;  
globalStyleFormat.highlight3D = 0x000000;  
globalStyleFormat.scrollTrack = 0xCCCCCC;  
globalStyleFormat.background = 0x006699;  
globalStyleFormat.applyChanges(); [/AS]

and look in page 237 of the manual to find a list of all the options you can use in this code. hope this helps.

---

<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: [July 28, 2003, 5:51pm UTC](https://forum.kirupa.com/t/text-within-a-scroll-pane/26952/3 "2003-07-28T17:51:19Z")

</div>

I’m not loading it from a text file. Right now, I just have a whole external swf file that I load in. In that external swf is a scroll pane and in that scroll pane are text boxes and pictures. If there is a way I could set the text alpha to zero, that would solve my problem. They are dynamic text boxes within a scroll pane in an swf which gets loaded in using the loadMovie function.

---

<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: [July 28, 2003, 6:17pm UTC](https://forum.kirupa.com/t/text-within-a-scroll-pane/26952/4 "2003-07-28T18:17:29Z")

</div>

if you’r not loading it from a text file, why not to make your own scroll pane?

---

<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: [July 28, 2003, 6:19pm UTC](https://forum.kirupa.com/t/text-within-a-scroll-pane/26952/5 "2003-07-28T18:19:58Z")

</div>

Don’t know how. Otherwise I could.

---

<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: [July 28, 2003, 6:26pm UTC](https://forum.kirupa.com/t/text-within-a-scroll-pane/26952/6 "2003-07-28T18:26:57Z")

</div>

simple maths

---

<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: [July 28, 2003, 6:27pm UTC](https://forum.kirupa.com/t/text-within-a-scroll-pane/26952/7 "2003-07-28T18:27:27Z")

</div>

If anyone knows of a tutorial on how to create a scroll panel I would greatly appreciate it/
