<?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: Read and write local files with Flash Player 10</title>
	<atom:link href="http://dynamicflash.com/2008/07/flash-player-10-local-file-access/feed/" rel="self" type="application/rss+xml" />
	<link>http://dynamicflash.com/2008/07/flash-player-10-local-file-access/</link>
	<description>Confessions of a serial code abuser</description>
	<lastBuildDate>Wed, 16 Dec 2009 20:40:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: receptionist friendly flash 10 xml editor &#171; headwinds lab</title>
		<link>http://dynamicflash.com/2008/07/flash-player-10-local-file-access/comment-page-1/#comment-111594</link>
		<dc:creator>receptionist friendly flash 10 xml editor &#171; headwinds lab</dc:creator>
		<pubDate>Wed, 21 Oct 2009 17:24:10 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/?p=160#comment-111594</guid>
		<description>&lt;p&gt;[...] I liked these two blog posts about the filereference features and the known save bug: deleteaso.com dynamicflash.com [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] I liked these two blog posts about the filereference features and the known save bug: deleteaso.com dynamicflash.com [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Brett Adam</title>
		<link>http://dynamicflash.com/2008/07/flash-player-10-local-file-access/comment-page-1/#comment-108283</link>
		<dc:creator>Brett Adam</dc:creator>
		<pubDate>Wed, 05 Aug 2009 21:44:27 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/?p=160#comment-108283</guid>
		<description>&lt;p&gt;Actually, I found that this has to be done a little differently in the final Flashplayer 10 version.&lt;/p&gt;

&lt;p&gt;Here&#039;s my code&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
    // we need to keep this ref to prevent the fileRef getting GC&#039;d
    // cause the docs say that if it goes out of scope, you won&#039;t get the
    // completion events&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;&lt;code&gt;private var fileRef:FileReference;&lt;/p&gt;

&lt;p&gt;public function handleReadFileContent(event:Event):void
{
    fileRef = new FileReference();
    fileRef.addEventListener( Event.SELECT, onFileSelect );
    fileRef.addEventListener( Event.COMPLETE, onFileComplete );
    fileRef.browse();
}&lt;/p&gt;

&lt;p&gt;private function onFileSelect( event:Event ):void
{
    fileRef.load();
}&lt;/p&gt;

&lt;p&gt;private function onFileComplete( event:Event ):void
{
    var content:ByteArray = fileRef.data as ByteArray;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;data = content;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}
&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Actually, I found that this has to be done a little differently in the final Flashplayer 10 version.</p>

<p>Here&#8217;s my code</p>

<p><code>
    // we need to keep this ref to prevent the fileRef getting GC'd
    // cause the docs say that if it goes out of scope, you won't get the
    // completion events</code></p>

<p><pre><code>private var fileRef:FileReference;</code></pre></p>

<p>public function handleReadFileContent(event:Event):void
{
    fileRef = new FileReference();
    fileRef.addEventListener( Event.SELECT, onFileSelect );
    fileRef.addEventListener( Event.COMPLETE, onFileComplete );
    fileRef.browse();
}</p>

<p>private function onFileSelect( event:Event ):void
{
    fileRef.load();
}</p>

<p>private function onFileComplete( event:Event ):void
{
    var content:ByteArray = fileRef.data as ByteArray;</p>

<pre><code>data = content;
</code></pre>

<p>}
</p>

<p><code></code></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Kaolin Fire</title>
		<link>http://dynamicflash.com/2008/07/flash-player-10-local-file-access/comment-page-1/#comment-108281</link>
		<dc:creator>Kaolin Fire</dc:creator>
		<pubDate>Wed, 05 Aug 2009 21:13:31 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/?p=160#comment-108281</guid>
		<description>&lt;p&gt;Those worrying about security--for reading local files, the user is &lt;em&gt;prompted&lt;/em&gt; as to what file they want to allow the flash app to read. So the only real security hole is if the user can be convinced to select a file that they shouldn&#039;t. Same for writing.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Those worrying about security&#8211;for reading local files, the user is <em>prompted</em> as to what file they want to allow the flash app to read. So the only real security hole is if the user can be convinced to select a file that they shouldn&#8217;t. Same for writing.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: ChandruBS</title>
		<link>http://dynamicflash.com/2008/07/flash-player-10-local-file-access/comment-page-1/#comment-106620</link>
		<dc:creator>ChandruBS</dc:creator>
		<pubDate>Mon, 29 Jun 2009 06:24:40 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/?p=160#comment-106620</guid>
		<description>&lt;p&gt;Hi,
i&#039;m using Flex builder 3 on windows.
I tried running ur code.
  fileRef.browse(); works and i get a browse dialog.
But ...
  fileRef.open(); doesnt work
it gives the following error during compile.
&lt;b&gt;
1061: call to a possibly undefined method open through a reference with static type flash.net:FileRefernce&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;even
var data:ByteArray = fileRef.data as ByteArray; gives the following error.
&lt;b&gt;&quot;access of undefined property fileRef.&quot;&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Please tel me wat cud be wrong...
mail id : chandru dot bs4 at gmail dot com&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,
i&#8217;m using Flex builder 3 on windows.
I tried running ur code.
  fileRef.browse(); works and i get a browse dialog.
But &#8230;
  fileRef.open(); doesnt work
it gives the following error during compile.
<b>
1061: call to a possibly undefined method open through a reference with static type flash.net:FileRefernce</b></p>

<p>even
var data:ByteArray = fileRef.data as ByteArray; gives the following error.
<b>&#8220;access of undefined property fileRef.&#8221;</b></p>

<p>Please tel me wat cud be wrong&#8230;
mail id : chandru dot bs4 at gmail dot com</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Ady Levy</title>
		<link>http://dynamicflash.com/2008/07/flash-player-10-local-file-access/comment-page-1/#comment-105455</link>
		<dc:creator>Ady Levy</dc:creator>
		<pubDate>Sun, 07 Jun 2009 21:36:02 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/?p=160#comment-105455</guid>
		<description>&lt;p&gt;i have a source code for image preview, rotate and upload as jpg after resizing the image.&lt;/p&gt;

&lt;p&gt;check out &lt;a href=&#039;http://www.adylevy.com/index.php/2009/06/07/client-side-image-resize-flash-cs4-filereferencedata/&#039; title=&#039;client side image resize&#039; rel=&quot;nofollow&quot;&gt;Client side image resize&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ady.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>i have a source code for image preview, rotate and upload as jpg after resizing the image.</p>

<p>check out <a href='http://www.adylevy.com/index.php/2009/06/07/client-side-image-resize-flash-cs4-filereferencedata/' title='client side image resize' rel="nofollow">Client side image resize</a></p>

<p>Ady.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: saji</title>
		<link>http://dynamicflash.com/2008/07/flash-player-10-local-file-access/comment-page-1/#comment-71985</link>
		<dc:creator>saji</dc:creator>
		<pubDate>Mon, 17 Nov 2008 05:35:52 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/?p=160#comment-71985</guid>
		<description>&lt;p&gt;If a flash app can read a local users file system, I feel that on one side this would rise security issues and on the other side it would be really useful for programmers like us. 
Can anyone tell me if this could solve this perticular requirement?&lt;/p&gt;

&lt;p&gt;I have created a downloader in flex, This downloader fetches a list of files to be downloaded from the server. Once the list is retrived, on clicking the file names in the list it will open a save dialog box and start downloading the file.
My concern is that, I need to create a downloader, where in, the destination folder is selected by the user (only once) for saving the files and then one by one the files are to be downloaded to that folder. Is this possible?
Thanks for any help.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>If a flash app can read a local users file system, I feel that on one side this would rise security issues and on the other side it would be really useful for programmers like us. 
Can anyone tell me if this could solve this perticular requirement?</p>

<p>I have created a downloader in flex, This downloader fetches a list of files to be downloaded from the server. Once the list is retrived, on clicking the file names in the list it will open a save dialog box and start downloading the file.
My concern is that, I need to create a downloader, where in, the destination folder is selected by the user (only once) for saving the files and then one by one the files are to be downloaded to that folder. Is this possible?
Thanks for any help.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://dynamicflash.com/2008/07/flash-player-10-local-file-access/comment-page-1/#comment-69557</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 28 Oct 2008 15:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/?p=160#comment-69557</guid>
		<description>&lt;p&gt;Andrew: The FileReference API returns a ByteArray object, so you could use this to read/write any kind of file including images.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Andrew: The FileReference API returns a ByteArray object, so you could use this to read/write any kind of file including images.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://dynamicflash.com/2008/07/flash-player-10-local-file-access/comment-page-1/#comment-69556</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 28 Oct 2008 15:12:07 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/?p=160#comment-69556</guid>
		<description>&lt;p&gt;Matthias: I have updated the FlexPad example files so that they work with the release version of Flash Player 10. If you&#039;re interested, the difference is that local file data is no longer available in the OPEN event - instead you have to wait until the subsequent COMPLETE event fires in order to get at the data from the file.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Matthias: I have updated the FlexPad example files so that they work with the release version of Flash Player 10. If you&#8217;re interested, the difference is that local file data is no longer available in the OPEN event &#8211; instead you have to wait until the subsequent COMPLETE event fires in order to get at the data from the file.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://dynamicflash.com/2008/07/flash-player-10-local-file-access/comment-page-1/#comment-69413</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Mon, 27 Oct 2008 19:12:28 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/?p=160#comment-69413</guid>
		<description>&lt;p&gt;Will this work for image files too, or just text?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Will this work for image files too, or just text?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias</title>
		<link>http://dynamicflash.com/2008/07/flash-player-10-local-file-access/comment-page-1/#comment-69173</link>
		<dc:creator>Matthias</dc:creator>
		<pubDate>Sun, 26 Oct 2008 12:36:32 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/?p=160#comment-69173</guid>
		<description>&lt;p&gt;hi
I just don&#039;t seem to be able to load or save anything with your flexpad ? (flash 10 is installed ) (win xp, firefox 3.0)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>hi
I just don&#8217;t seem to be able to load or save anything with your flexpad ? (flash 10 is installed ) (win xp, firefox 3.0)</p>]]></content:encoded>
	</item>
</channel>
</rss>
