6 Replies Latest reply on Jan 8, 2007 2:24 PM by Alexis_Schneider

    try to check whether a file already exists on disk by using fileExists

    Alexis_Schneider
      Hy all,
      i try to check whether a file already exists on disk in my Action scirpt.
      I found this link about fileExists:

      link

      So i tried somethink like this in my code, but without success...

      if(fl.fileExists("file:///C|/toto.txt"))
      {gotoAndPlay(2);}
      else
      {gotoAndPlay(3);}

      Is it not the right syntax?

      Thank you for your help.