Hi,
I've made a shoutbox using flash/php&mysql with the help of this ( http://www.sephiroth.it/tutorials/f.../page001.php#11 ) tutorial. I've modified(?) it to my site and everything is workign fine exepct i'm getting some numbers and i don't know where are they coming from, see for yourself ( http://www.members.lycos.nl/amstelonline/test.html , the message delay is 5 sec)
here's the actionscript code ( think that the error is somewhere there but i'm really new with flash so i don't know for sure)
Hope y'all could help me :)PHP Code:System.useCodepage = true;
format = new TextFormat();
testo.html = true;
function formatText(textBox,ita,siz,Bold,colour){
format.italic = ita;
format.size = "65";
format.bold = Bold;
format.font = "Verdana";
format.align = "center";
format.color = "#000000";
textBox.setTextFormat(format);
}
testo.text = "Loading news...";
formatText(testo,false,65,true);
temp = new LoadVars();
temp.load("[url=http://members.lycos.nl/amstelonline/getdata.php]http://members.lycos.nl/amstelonline/getdata.php[/url]" );
temp.onLoad = function(){
myArray = new Array();
for(var a in this){
if(a != "onLoad" ){
myArray.push(this[a]);
}
}
testo.htmlText = myArray[1];
formatText(testo,false,65,true);
var oldt = getTimer();
var ok = true;
var l = myArray.length;
var i = 2;
_root.onEnterFrame = function(){
t = getTimer();
if(t-oldt>5000){
testo.htmlText = myArray[i+1];
formatText(testo,false,65,true);
if(i<(l-2)){
i += 2;
}else{
i = 0;
}
oldt = getTimer();
}
};
};
