Text within a scroll pane

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.

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.

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.

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

Don’t know how. Otherwise I could.

simple maths

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