A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: can AS see if there is a text file on the server...

Hybrid View

  1. #1
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,875
    Yes u deifintely can create links using an xml file. You would load the xml content into flash and then create the links using the values retrieved from the xml object.

    You can write to the xml file from flash but you would need to use a server side language to update/overwrite the xml file with the new content.

    I think if you do a few google searches or even ask here you may find quite a lot of good articles of integrating flash with xml
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    All you need to do is call the text file and load it. If it cannot be loaded it does not exist on the server.

    var myFile:LoadVars = new LoadVars();
    myFile.onLoad = function(success:Boolean){
    if(success){
    trace("File exists");
    }else{
    trace("file does not exist");
    }
    }
    myFile.load("file.txt");
    - The right of the People to create Flash movies shall not be infringed. -

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