5 Replies Latest reply on Mar 10, 2007 5:09 PM by jthereliable

    How to detact if a file exist in a folder

    TKLau
      How can I detact a file (a jpg or flv) exists in a folder?

      The script that I can think of so far is like this,

      var filename:String= "videos/vid test 0110.flv";
      if (filename){
      trace("well done");
      }else{
      trace("sorry");
      }

      Please help me on this problem if you know....

      Thanks.
      Lau