SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Threaded View

  1. #1
    SitePoint Zealot ThaLIkz's Avatar
    Join Date
    Jan 2002
    Location
    Drenthe, The Netherlands
    Posts
    140
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Shoutbox flash/php&mysql

    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)

    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(
    != "onLoad" ){
    myArray.push(this[a]);
    }
    }
    testo.htmlText myArray[1];
    formatText(testo,false,65,true);
    var 
    oldt getTimer();
    var 
    ok true;
    var 
    myArray.length;
    var 
    2;
    _root.onEnterFrame = function(){
    getTimer();
    if(
    t-oldt>5000){
    testo.htmlText myArray[i+1];
    formatText(testo,false,65,true);
    if(
    i<(l-2)){
        
    += 2;
    }else{
        
    0;
    }
    oldt getTimer();
    }
    };
    }; 
    Hope y'all could help me
    Last edited by ThaLIkz; Mar 6, 2003 at 09:55.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •