# CSS & External Text with scrolling

**URL:** <https://forum.kirupa.com/t/css-external-text-with-scrolling/80651>\
**Category:** flash\
**Created:** [February 23, 2005, 6:20pm UTC](https://forum.kirupa.com/t/css-external-text-with-scrolling/80651 "2005-02-23T18:20:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aerojonny](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@aerojonny](https://forum.kirupa.com/u/aerojonny)\
**Post date:** [February 23, 2005, 6:20pm UTC](https://forum.kirupa.com/t/css-external-text-with-scrolling/80651/1 "2005-02-23T18:20:04Z")

</div>

OK, I have a small swf that loads external text as shown here. The clip allows me to have scrolling by rollover on the buttons. It works great. I am having trouble getting the CSS to attach and maintain the funtionality… CAn I intergrate

loadVariablesNum(“ProjRollText2.txt”, 0);

into the lower code?

## [http://conceptualmoti.temppublish.com/resize/Phase.cfm?Phase=1](http://conceptualmoti.temppublish.com/resize/Phase.cfm?Phase=1)

Need to integrate with

var format = new TextField.StyleSheet();  
var path = “cmc.css”;  
format.load(path);  
format.onLoad = function(success) {  
if (success) {  
output.styleSheet = format;  
myLoadVar = new LoadVars();  
myLoadVar.load(“ProjRollText2.txt”);  
myLoadVar.onLoad = function(success) {  
if (success == true) {  
output.variable = “textbox1”;  
output.htmlText = myLoadVar.textbox1;  
}  
};  
} else {  
output.text = “Error loading CSS file!”;  
}  
};
