I have followed three of the scripts in the tutes section, but cannot get this to scroll:
The css loads fine, however I cannot get this thing to scroll the text. Can anyone help me.
This is what is in my first keyframe. Where SCROLLER is the instance name of my text box.
var format = new TextField.StyleSheet();
var path = "http://www.amyhedrick.com/css/flash.css";
format.load(path);
format.onLoad = function(loaded) {
if (loaded) {
scroller.styleSheet = format;
myLoadVar = new LoadVars ();
myLoadVar.load("tv.txt")
myLoadVar.onLoad = function (success){
if (success == true) {
scroller.variable = "tvtext"
scroller.htmlText=myLoadVar.tvtext;
}
}
} else {
scroller.text = "Error loading CSS file!";
}
};
//creating the loadVarsText function
myLoadVar.onLoad = function() {
scroller.text = this.tvtext;
};
Thanks.