3 Replies Latest reply on Mar 21, 2013 12:53 PM by kglad

    How to ReLoad a sendAndLoad




      I've been at this for ages now. I'm have a file I'm importing data from which eventually will be shown on a screen. The data loads fine but I am trying to get it to refresh every 30 seconds to get the latest post.


      I'm currently working off a .txt. Here's my code:



      function LOAD(){

      var GET_DATA:LoadVars = new LoadVars();

      var LOAD_PHP:LoadVars = new LoadVars();


      GET_DATA.sendAndLoad("screendata.txt", LOAD_PHP);

      LOAD_PHP.onLoad = function(){










      Simple enough but how do you get it to refresh the data without it storing the variables in cache? I've tried setInterval and onEnterFrame functions and none work. I just cannot get it to refresh once it's loaded. I'm medium to advanced with PHP but only basics really with ActionScript.


      Any help would be much appreciated.