A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: reloading .txt files into a flash movie?

  1. #1
    Member
    Join Date
    Jul 2001
    Posts
    95
    is it possible to do the following and where is it possible for me to resource some info on how I would go about doing this!

    a flash page..containing scroll bars which loads a external .txt file [this part is ok]

    how can I tell flash to refresh/reload this .txt file say every 5 mins....because changes maybe made to its content over a period of time on the server by an external person

    thanks
    ravenotice


  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    A timer thingy that would reload the movie itself on level0?
    Guess it could also be done with java, within the html holding the Flash movie itself... Refreshing it every 5 minutes or so!

  3. #3
    Senior Member
    Join Date
    Jun 2000
    Location
    Sydney
    Posts
    158
    function loadTextFile(){
    loadVariablesNum("myTextFile.txt",0);
    }

    intervalID = setInterval(loadTextFile, 300000);

    The 'setInterval' will run every 5 minutes. If you want to stop this at any stage just go:

    clearInterval(intervalID);

    cheers
    pixelboy

  4. #4
    Member
    Join Date
    Jul 2001
    Posts
    95

    timer ?

    oldnewbie

    thanks for your feedback....I dont want to reload the html page just the .txt document which is the content in the scroller bar...do you know where I can access some tutorials of actionscript which could help me?

    thanks
    ravenotice

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