Search code examples
flashinteractivecd

how to create a download files from the interactive cd


I have a college assignment, I had to create a function to download a file, but I put file in a directory on the interactive cd that I created using flash abode. how do I make this work?

Any help is appreciated. Thank you!


Solution

  • It's available AIR. you must using a File Class.

    refer a following code.

    var dir:File = File.userDirectory.resolvePath("MyDirectory"); 
    dir.createDirectory();
    

    More Information: File Tutorial