A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Weather project

Hybrid View

  1. #1
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Basically I used onData then replaced all the , with . and then serached looking for min. and max. then grab the temp after those and scaled a movieclip using the tempurature

  2. #2
    Member
    Join Date
    Mar 2003
    Location
    Netherland
    Posts
    33
    Well this look nice, i think i can with your code make a good working weather control for my webpage.
    I will let it know if it's done, or not
    Thanks for all the help!
    Gr Hans

  3. #3
    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