<p>I have written an AIR Application that downloads videos and documents from a server. The videos play inside of the application, but I would like the user to be able to open the documents in their native applications.</p>

<p>I am looking for a way to prompt the user to Open / Save As on a local file stored in the Application Storage Directory. I have tried using the FileReference + URLRequest classes but this throws an exception that it needs a remote url.</p>

<p>My last resort is just copying the file to their desktop : \</p>

[{'answer_id': 5266, 'author': 'Shawn', 'author_id': 26, 'author_profile': 'https://Stackoverflow.com/users/26', 'pm_score': 3, 'selected': True, 'text': '<p>Only way I could figure out how to do it without just moving the file and telling the user was to pass it off to the browser.</p>\n\n<pre><code>navigateToURL(new URLRequest(File.applicationStorageDirectory.nativePath + "/courses/" + fileName));\n</code></pre>\n'}, {'answer_id': 11214, 'author': 'Matt MacLean', 'author_id': 22, 'author_profile': 'https://Stackoverflow.com/users/22', 'pm_score': 0, 'selected': False, 'text': '<p>Currently adobe is not supporting opening files in there default applications. Passing it off to the browser seems to be the only way to make it work.</p>\n\n<p>You could however use a FileStream and write a small html file with some javascript that sets the location of an iframe to the file, then after 100ms or so calls window.close(). Then open that file in the browser.</p>\n'}, {'answer_id': 1171296, 'author': 'user106085', 'author_id': 106085, 'author_profile': 'https://Stackoverflow.com/users/106085', 'pm_score': 2, 'selected': False, 'text': '<p>This is the first release of the FluorineFx Aperture framework.</p>\n\n<p>The framework provides native OS integration (Windows only) support for AIR desktop applications.</p>\n\n<p>The framework extends Adobe AIR applications in a non-intrusive way: simply redistribute the provided libraries with your AIR application, at runtime the framework will automatically hook into your application.</p>\n\n<p><strong>Features</strong></p>\n\n<ul>\n<li>Launch native applications and documents with the provided apsystem library</li>\n<li>Take screenshots of the whole screen with the provided apimaging library</li>\n<li>Access Outlook contacts from an Air application with the provided apoutlook library</li>\n</ul>\n\n<p><a href="http://aperture.fluorinefx.com/" rel="nofollow noreferrer">http://aperture.fluorinefx.com/</a></p>\n'}, {'answer_id': 3233338, 'author': 'Chris', 'author_id': 389993, 'author_profile': 'https://Stackoverflow.com/users/389993', 'pm_score': 4, 'selected': False, 'text': "<p>You can use the new <code>openWithDefaultApplication();</code> function that's available on the File class (I believe it's only available in AIR 2)</p>\n\n<p>eg:</p>\n\n<pre><code>var file:File = File.desktopDirectory.resolvePath(fileLocation);\nfile.openWithDefaultApplication();\n</code></pre>\n"}, {'answer_id': 32225417, 'author': '1.21 gigawatts', 'author_id': 441016, 'author_profile': 'https://Stackoverflow.com/users/441016', 'pm_score': 0, 'selected': False, 'text': '<p>For me it\'s: </p>\n\n<pre><code>var request:URLRequest = new URLRequest();\nrequest.url = file.url;\nnavigateToURL(request, "_blank");\n</code></pre>\n\n<p>The <code>navigateToURL(file.nativePath)</code> didn\'t work since the path, "/users/mydirectory/..." was outside the <a href="http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7cba.html" rel="nofollow">application sandbox</a>. AIR only allows some protocols to be opened with <code>navigateToURL()</code>.</p>\n'}]
['https://Stackoverflow.com/questions/5017', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/26/']