dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Check to see if a file exists

  1. #1
    Electrical Engineer
    Join Date
    Aug 2003
    Location
    Indiana, USA
    Posts
    122

    Check to see if a file exists

    My fla references an XML file. Is there some code that I can add to the beginning of my .fla to check to see if the xml file exists?

    Thanks,
    Nathan

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    code:
    myXML.onLoad = myLoadHandler;
    myLoadHandler = function(loaded) {
    if (loaded == true) {
    // The XML document loaded without error, continue processing.
    } else {
    // The XML document could not be loaded, stop processing.
    }
    }



    gparis

  3. #3
    Electrical Engineer
    Join Date
    Aug 2003
    Location
    Indiana, USA
    Posts
    122
    Thank you very much... Works great!

    -Nathan

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