# Urgent Help: Database loading, CSS, Scrolling

**URL:** <https://forum.kirupa.com/t/urgent-help-database-loading-css-scrolling/112725>\
**Category:** Uncategorized\
**Created:** [June 10, 2004, 8:18pm UTC](https://forum.kirupa.com/t/urgent-help-database-loading-css-scrolling/112725 "2004-06-10T20:18:56Z")\
**Posts on this page:** 5\
**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 10, 2004, 8:18pm UTC](https://forum.kirupa.com/t/urgent-help-database-loading-css-scrolling/112725/1 "2004-06-10T20:18:56Z")

</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 today somehow 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!”;  
}  
};

---

<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:** [June 11, 2004, 7:20pm UTC](https://forum.kirupa.com/t/urgent-help-database-loading-css-scrolling/112725/2 "2004-06-11T19:20:27Z")

</div>

Can anyone help me with this problem?

---

<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:** [June 11, 2004, 8:20pm UTC](https://forum.kirupa.com/t/urgent-help-database-loading-css-scrolling/112725/3 "2004-06-11T20:20:51Z")

</div>

I might try sticking this one in the Server or Client side scripting forum… I’ve never messed around with variables in ASP myself.

---

<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:** [June 11, 2004, 9:25pm UTC](https://forum.kirupa.com/t/urgent-help-database-loading-css-scrolling/112725/4 "2004-06-11T21:25:17Z")

</div>

Thanks disco stu, I’ll try it there!

---

<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:** [June 11, 2004, 9:27pm UTC](https://forum.kirupa.com/t/urgent-help-database-loading-css-scrolling/112725/5 "2004-06-11T21:27:31Z")

</div>

try posting your asp code.
