A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Weather project

Hybrid View

  1. #1
    Member
    Join Date
    Mar 2003
    Location
    Netherland
    Posts
    33

    updates

    hi blanius,
    i did make a good working temp meter. (thanks again for that)
    But only one question, now i want to update the data every time a vistor is loading the temp meter.

    I try the next code but is still not working proper.

    'int' is the time in sec for a new update equally to the real update from the weatherstation.
    After that the fun file have to update data every 5 min (equally to the real update from the weatherstation.)
    The first time the fun file is loaded, it have to update directly, so the last update from the weatherstation is showing


    weatherdat= function (){

    _root.loadVariables("http://82.134.247.103/cgi-bin/weer/get.pl", "POST");

    temp = searchandreplace(temp,",",".");
    p=((Number(temp)+0)/maxTemp)*100
    tmpbar._yscale=p
    txt1.text=temp+"°C";

    setInterval(weatherdat, int);
    }
    weatherdat(int=1000);


    I know i ask a lot, but realy try to learn
    Gr, Hans
    Attached Images Attached Images

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center