title: How can I add setInterval() in actionscript?
body: <p>I am receiving a image from server through <em>Action Script</em>.  I want to  receive the image in a continuous manner.</p>
  
  <p>I am new to this Action Script and write the following code<br>
  I am writing in Flash how can I add `setInterval() to it.</p>
  
  <pre><code>var my_pb:mx.controls.ProgressBar;                        
  my_pb.mode = "manual";                       
  this.createEmptyMovieClip("img_mc", 999);                  
  var my_mcl:MovieClipLoader = new MovieClipLoader();            
  var mclListenerbject = new Object();                   
  mclListener.onLoadStart = function(target_mc:MovieClip)  {          
      my_pb.label = "loading: "+target_mc._name;              
  };                    
  mclListener.onLoadProgress =function(target_mc:MovieClip,            
                       numBytesLoaded:Number, numBytesTotal:Number) {              
      var pctLoaded:Number = Math.ceil(100*(numBytesLoaded/numBytesTotal));                            
      my_pb.setProgress(numBytesLoaded, numBytesTotal);              
  };              
  my_mcl.addListener(mclListener);                    
  my_mcl.loadClip("123.php?device=9113......", img_mc);
  </code></pre>
  
  <p>thank u.</p>