PDA

View Full Version : Component expert needed. Bigtime


theeggert
04-19-2005, 11:33 AM
Hello im pretty new to AS, i have a ticker component that gets the data from an external .txt file,
but i need the ticker to repeat once the text finishes, i need help badly
otherwise my boss will beat me

The AS im using is below

System.useCodepage=true;
loadVarsText = new LoadVars();
loadVarsText.load("news.txt");
var theData = new Array();
loadVarsText.onLoad = function(success) {
if (success) {
for(i=0;i<20;i++){
theData[i]={text:loadVarsText["message"+(i+1)],textColor:0xffffff, border:false};
myTicker.setDataProvider(theData);
myTicker.setDataAllProperty("multiline", false);
myTicker.setDataAllProperty("wordWrap", false);
myTicker.setDataAllProperty("autosize", "right");
//myTicker.setSpacing(25);
myTicker.setClickHandler("myClickHandler")
}
} else {
trace("not loaded");
}
};

jsebrech
04-19-2005, 11:57 AM
You'll have to give us the code to myTicker for someone to be able to give you an answer.

theeggert
04-19-2005, 12:09 PM
Sorry is that the actionscript under ticker?
here is the .fla zipped
thank you