<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Why has AIR file.browseForSave no FileFilter option</title>
	<atom:link href="http://blog.arnomanders.nl/index.php/archives/why-has-air-filebrowseforsave-no-filefilter-option/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.arnomanders.nl/index.php/archives/why-has-air-filebrowseforsave-no-filefilter-option/</link>
	<description>Flex, Flash, AIR and everything that is brand new</description>
	<lastBuildDate>Thu, 26 Jan 2012 19:11:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Adrian Smith</title>
		<link>http://blog.arnomanders.nl/index.php/archives/why-has-air-filebrowseforsave-no-filefilter-option/comment-page-1/#comment-26214</link>
		<dc:creator>Adrian Smith</dc:creator>
		<pubDate>Wed, 11 Aug 2010 13:11:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.arnomanders.nl/?p=149#comment-26214</guid>
		<description>Lubomir: I also used your solution as is and it worked great!!!

Many thanks.

Adrian Smith
London</description>
		<content:encoded><![CDATA[<p>Lubomir: I also used your solution as is and it worked great!!!</p>
<p>Many thanks.</p>
<p>Adrian Smith<br />
London</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shivanno</title>
		<link>http://blog.arnomanders.nl/index.php/archives/why-has-air-filebrowseforsave-no-filefilter-option/comment-page-1/#comment-23482</link>
		<dc:creator>Shivanno</dc:creator>
		<pubDate>Tue, 29 Dec 2009 18:31:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.arnomanders.nl/?p=149#comment-23482</guid>
		<description>Lubomir: I try your way and worked like a charm, however i made a few tweaks in order to make shorter the code... this is how finally works for me :D:


var selectedfile:File = File ( e.target)
if ( selectedfile.extension == null )  selectedfile.nativePath +=&quot;.txt&quot;;
stream.open( selectedfile, FileMode.WRITE );</description>
		<content:encoded><![CDATA[<p>Lubomir: I try your way and worked like a charm, however i made a few tweaks in order to make shorter the code&#8230; this is how finally works for me :D:</p>
<p>var selectedfile:File = File ( e.target)<br />
if ( selectedfile.extension == null )  selectedfile.nativePath +=&#8221;.txt&#8221;;<br />
stream.open( selectedfile, FileMode.WRITE );</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lubomir</title>
		<link>http://blog.arnomanders.nl/index.php/archives/why-has-air-filebrowseforsave-no-filefilter-option/comment-page-1/#comment-23013</link>
		<dc:creator>Lubomir</dc:creator>
		<pubDate>Fri, 30 Oct 2009 13:42:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.arnomanders.nl/?p=149#comment-23013</guid>
		<description>yep, there is no FileFilter for browseForSave...

you can also try:

&lt;code&gt;
var file:File = File.desktopDirectory.resolvePath(&quot;*.txt&quot;);
&lt;/code&gt;

this way, when the save dialog opens all text files (*.txt) will be filtered. however, since there is no actual filter specified, the input box will allow entering any filename and overwriting files with different extensions. to prevent that and to ensure that an extension is added try the following in the &quot;listener&quot; function:

&lt;code&gt;
var selectedfile:File = File(event.target);
var savetarget:String = selectedfile.url;
if(savetarget.indexOf(&quot;.txt&quot;) == -1) savetarget += &quot;.txt&quot;;
var savefile:File = new File();
savefile = savefile.resolvePath(savetarget);
// save stream...
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>yep, there is no FileFilter for browseForSave&#8230;</p>
<p>you can also try:</p>
<p><code><br />
var file:File = File.desktopDirectory.resolvePath("*.txt");<br />
</code></p>
<p>this way, when the save dialog opens all text files (*.txt) will be filtered. however, since there is no actual filter specified, the input box will allow entering any filename and overwriting files with different extensions. to prevent that and to ensure that an extension is added try the following in the &#8220;listener&#8221; function:</p>
<p><code><br />
var selectedfile:File = File(event.target);<br />
var savetarget:String = selectedfile.url;<br />
if(savetarget.indexOf(".txt") == -1) savetarget += ".txt";<br />
var savefile:File = new File();<br />
savefile = savefile.resolvePath(savetarget);<br />
// save stream...<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lumma</title>
		<link>http://blog.arnomanders.nl/index.php/archives/why-has-air-filebrowseforsave-no-filefilter-option/comment-page-1/#comment-21478</link>
		<dc:creator>Lumma</dc:creator>
		<pubDate>Mon, 10 Aug 2009 14:23:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.arnomanders.nl/?p=149#comment-21478</guid>
		<description>Had the same problem
Gladly, Stefan Richter&#039;s approach did it for me - http://www.flashcomguru.com/index.cfm/2009/5/20/AIR-file-save-as</description>
		<content:encoded><![CDATA[<p>Had the same problem<br />
Gladly, Stefan Richter&#8217;s approach did it for me &#8211; <a href="http://www.flashcomguru.com/index.cfm/2009/5/20/AIR-file-save-as" rel="nofollow">http://www.flashcomguru.com/index.cfm/2009/5/20/AIR-file-save-as</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Hughes</title>
		<link>http://blog.arnomanders.nl/index.php/archives/why-has-air-filebrowseforsave-no-filefilter-option/comment-page-1/#comment-21266</link>
		<dc:creator>Peter Hughes</dc:creator>
		<pubDate>Fri, 31 Jul 2009 17:33:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.arnomanders.nl/?p=149#comment-21266</guid>
		<description>The users of my application will not be very computer literate - many of them do not have file extensions turned on, or do not even know what they are. The lack of a FileFilter for saves has already created trouble for me - just one of those little unexpected bugs that requires an explanation. It could enlarge an impression that my Flash product is second rate.</description>
		<content:encoded><![CDATA[<p>The users of my application will not be very computer literate &#8211; many of them do not have file extensions turned on, or do not even know what they are. The lack of a FileFilter for saves has already created trouble for me &#8211; just one of those little unexpected bugs that requires an explanation. It could enlarge an impression that my Flash product is second rate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://blog.arnomanders.nl/index.php/archives/why-has-air-filebrowseforsave-no-filefilter-option/comment-page-1/#comment-10161</link>
		<dc:creator>James</dc:creator>
		<pubDate>Thu, 18 Sep 2008 15:37:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.arnomanders.nl/?p=149#comment-10161</guid>
		<description>Hi, I found your blog on this new directory of WordPress Blogs at blackhatbootcamp.com/listofwordpressblogs.  I dont know how your blog came up, must have been a typo, i duno.  Anyways, I just clicked it and here I am.  Your blog looks good.  Have a nice day.  James.</description>
		<content:encoded><![CDATA[<p>Hi, I found your blog on this new directory of WordPress Blogs at blackhatbootcamp.com/listofwordpressblogs.  I dont know how your blog came up, must have been a typo, i duno.  Anyways, I just clicked it and here I am.  Your blog looks good.  Have a nice day.  James.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FreeFrag</title>
		<link>http://blog.arnomanders.nl/index.php/archives/why-has-air-filebrowseforsave-no-filefilter-option/comment-page-1/#comment-8653</link>
		<dc:creator>FreeFrag</dc:creator>
		<pubDate>Sun, 10 Aug 2008 15:39:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.arnomanders.nl/?p=149#comment-8653</guid>
		<description>The reason they don&#039;t do this is because Adobe doesn&#039;t know what they&#039;re doing. The method of locating files using AIR is, frankly, stupid. Instead of being able to tie everything into one function, you have to do it with three. It&#039;s absurd and it feels like a waste of time.</description>
		<content:encoded><![CDATA[<p>The reason they don&#8217;t do this is because Adobe doesn&#8217;t know what they&#8217;re doing. The method of locating files using AIR is, frankly, stupid. Instead of being able to tie everything into one function, you have to do it with three. It&#8217;s absurd and it feels like a waste of time.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

