# CSS, asp loaded text, and scrollbars problem

**URL:** <https://forum.kirupa.com/t/css-asp-loaded-text-and-scrollbars-problem/112843>\
**Category:** Uncategorized\
**Created:** [June 11, 2004, 9:32pm UTC](https://forum.kirupa.com/t/css-asp-loaded-text-and-scrollbars-problem/112843 "2004-06-11T21:32:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wanyo](https://avatars.discourse-cdn.com/v4/letter/w/9d8465/32.png) [@wanyo](https://forum.kirupa.com/u/wanyo)\
**Post date:** [June 11, 2004, 9:32pm UTC](https://forum.kirupa.com/t/css-asp-loaded-text-and-scrollbars-problem/112843/1 "2004-06-11T21:32:59Z")

</div>

Okay, here’s my dillema:  
I built an application to load a menu from an asp file called **code.asp** into a single variable into a scrolling text box named **textField**. I finally got the scrolling text box to work with the css. I tested this with a regular externally loaded text file because I didn’t have the code.asp file ready for me. So I changed the code over to the loadvariablesnum(); (linked in the same folder) and this morning when I get up I come to find that when they implemented the code.asp it does not load the variable from the asp file. I need to get this done as soon as possible and I’ve run out of ideas of what is wrong. If anyone could help me I’d be greatly appreciative! ![](http://www.kirupaforum.com/forums/images/icons/index.5.gif)

**Here’s my code:**  
this.onEnterFrame = function() {  
if (scrollUp) {  
textField.scroll–;  
}  
if (scrollDown) {  
textField.scroll++;  
}  
}  
stop();  
var format = new TextField.StyleSheet();  
var path = “flash.css”;  
format.load(path);  
format.onLoad = function(loaded) {  
if (loaded) {  
\_root.content\_mc.menu\_mc.textField.styleSheet = format;  
myLoadVar = new loadVariablesNum();  
myLoadVar.load(“code.asp”, 0, “GET”);  
myLoadVar.onLoad = function (success){  
if (success == true) {  
\_root.content\_mc.menu\_mc.textField.variable = “theMenu”  
\_root.content\_mc.menu\_mc.textField.htmlText=myLoadVar.theMenu;  
}  
}  
} else {  
\_root.content\_mc.menu\_mc.textField.text = “Error loading CSS file!”;  
}  
};
