<?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: FileReferenceList() problem in AS3</title>
	<atom:link href="http://blog.arnomanders.nl/index.php/archives/filereferencelist-problem-in-as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.arnomanders.nl/index.php/archives/filereferencelist-problem-in-as3/</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: Uday</title>
		<link>http://blog.arnomanders.nl/index.php/archives/filereferencelist-problem-in-as3/comment-page-1/#comment-42601</link>
		<dc:creator>Uday</dc:creator>
		<pubDate>Thu, 26 Jan 2012 19:11:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.arnomanders.nl/index.php/archives/filereferencelist-problem-in-as3/#comment-42601</guid>
		<description>Any one can help me my old post:
I am not able to trace the selected file’s location.
I am using trace(file.name);
it traces: abc.jpt.
While we need the exact location of this file:
like: C://images/abc.jpg

Can any one help for the same.

As some one suggested to use:
file.nativePath or file.url

It&#039;s only for AIR but I need it for online.

Thanks,
Uday</description>
		<content:encoded><![CDATA[<p>Any one can help me my old post:<br />
I am not able to trace the selected file’s location.<br />
I am using trace(file.name);<br />
it traces: abc.jpt.<br />
While we need the exact location of this file:<br />
like: C://images/abc.jpg</p>
<p>Can any one help for the same.</p>
<p>As some one suggested to use:<br />
file.nativePath or file.url</p>
<p>It&#8217;s only for AIR but I need it for online.</p>
<p>Thanks,<br />
Uday</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Menzoic</title>
		<link>http://blog.arnomanders.nl/index.php/archives/filereferencelist-problem-in-as3/comment-page-1/#comment-25695</link>
		<dc:creator>Menzoic</dc:creator>
		<pubDate>Tue, 06 Jul 2010 21:23:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.arnomanders.nl/index.php/archives/filereferencelist-problem-in-as3/#comment-25695</guid>
		<description>You can just declare an array as a member variable, and then push a new FileReferenceList to that array within any function.</description>
		<content:encoded><![CDATA[<p>You can just declare an array as a member variable, and then push a new FileReferenceList to that array within any function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashok</title>
		<link>http://blog.arnomanders.nl/index.php/archives/filereferencelist-problem-in-as3/comment-page-1/#comment-24938</link>
		<dc:creator>Ashok</dc:creator>
		<pubDate>Sat, 22 May 2010 22:59:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.arnomanders.nl/index.php/archives/filereferencelist-problem-in-as3/#comment-24938</guid>
		<description>Thanks! I was struggling with the same problem until I saw your post.</description>
		<content:encoded><![CDATA[<p>Thanks! I was struggling with the same problem until I saw your post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aris</title>
		<link>http://blog.arnomanders.nl/index.php/archives/filereferencelist-problem-in-as3/comment-page-1/#comment-23486</link>
		<dc:creator>Aris</dc:creator>
		<pubDate>Tue, 29 Dec 2009 22:02:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.arnomanders.nl/index.php/archives/filereferencelist-problem-in-as3/#comment-23486</guid>
		<description>Thanks buddy. This helped me out. Before that I was staring at the code and it looked fine....</description>
		<content:encoded><![CDATA[<p>Thanks buddy. This helped me out. Before that I was staring at the code and it looked fine&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tamaz</title>
		<link>http://blog.arnomanders.nl/index.php/archives/filereferencelist-problem-in-as3/comment-page-1/#comment-16834</link>
		<dc:creator>Tamaz</dc:creator>
		<pubDate>Thu, 12 Mar 2009 12:51:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.arnomanders.nl/index.php/archives/filereferencelist-problem-in-as3/#comment-16834</guid>
		<description>Great post, thanks, helped me out! I&#039;ve been thinking for a while, why it didnt work=)</description>
		<content:encoded><![CDATA[<p>Great post, thanks, helped me out! I&#8217;ve been thinking for a while, why it didnt work=)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arno Manders</title>
		<link>http://blog.arnomanders.nl/index.php/archives/filereferencelist-problem-in-as3/comment-page-1/#comment-6657</link>
		<dc:creator>Arno Manders</dc:creator>
		<pubDate>Sun, 22 Jun 2008 09:51:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.arnomanders.nl/index.php/archives/filereferencelist-problem-in-as3/#comment-6657</guid>
		<description>You need to use file.nativePath or file.url</description>
		<content:encoded><![CDATA[<p>You need to use file.nativePath or file.url</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Uday</title>
		<link>http://blog.arnomanders.nl/index.php/archives/filereferencelist-problem-in-as3/comment-page-1/#comment-6652</link>
		<dc:creator>Uday</dc:creator>
		<pubDate>Sat, 21 Jun 2008 17:50:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.arnomanders.nl/index.php/archives/filereferencelist-problem-in-as3/#comment-6652</guid>
		<description>I am not able to trace the selected file&#039;s location. 
we are using trace(file.name);
it traces: abc.jpt.
While we need the location of this file:
like:  C://images/abc.jpg

Can you help me plz.

Thanks,
Uday</description>
		<content:encoded><![CDATA[<p>I am not able to trace the selected file&#8217;s location.<br />
we are using trace(file.name);<br />
it traces: abc.jpt.<br />
While we need the location of this file:<br />
like:  C://images/abc.jpg</p>
<p>Can you help me plz.</p>
<p>Thanks,<br />
Uday</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ispebo</title>
		<link>http://blog.arnomanders.nl/index.php/archives/filereferencelist-problem-in-as3/comment-page-1/#comment-6468</link>
		<dc:creator>ispebo</dc:creator>
		<pubDate>Tue, 20 May 2008 11:58:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.arnomanders.nl/index.php/archives/filereferencelist-problem-in-as3/#comment-6468</guid>
		<description>:FileReferenceList  have to be GLOBAL and not a LOCAL VARIABLE :)</description>
		<content:encoded><![CDATA[<p>:FileReferenceList  have to be GLOBAL and not a LOCAL VARIABLE :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arno Manders &#187; Blog Archive &#187; Get full file path in AIR</title>
		<link>http://blog.arnomanders.nl/index.php/archives/filereferencelist-problem-in-as3/comment-page-1/#comment-6008</link>
		<dc:creator>Arno Manders &#187; Blog Archive &#187; Get full file path in AIR</dc:creator>
		<pubDate>Tue, 01 Apr 2008 12:51:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.arnomanders.nl/index.php/archives/filereferencelist-problem-in-as3/#comment-6008</guid>
		<description>[...] Last week I tried the same technique to get a file dragged from the desktop to my AIR application. After fixing a strange problem the code worked but the next problem appeared to me. With FileReference I only get the file name [...]</description>
		<content:encoded><![CDATA[<p>[...] Last week I tried the same technique to get a file dragged from the desktop to my AIR application. After fixing a strange problem the code worked but the next problem appeared to me. With FileReference I only get the file name [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arno Manders</title>
		<link>http://blog.arnomanders.nl/index.php/archives/filereferencelist-problem-in-as3/comment-page-1/#comment-5825</link>
		<dc:creator>Arno Manders</dc:creator>
		<pubDate>Tue, 25 Mar 2008 18:11:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.arnomanders.nl/index.php/archives/filereferencelist-problem-in-as3/#comment-5825</guid>
		<description>you&#039;re right. 

Before I wrote this article I tested it but I did something wrong I guess. When I tested it the event got triggered with FileReference but not with FileReferenceList. Now I test it again both didn&#039;t get triggered. 

So in both cases you should declare the FileReference or FileReferenceList outside a function

or you could do it like this:
&lt;pre lang=&quot;actionscript&quot;&gt;
private function FileReferenceCall():void{
	var frl:FileReferenceList = new FileReferenceList();
	frl.addEventListener(Event.SELECT, onSelectFrl);
	frl.browse();
	function onSelectFrl(event:Event):void{
		trace(&quot;Event: &quot;+event.currentTarget);
	}
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>you&#8217;re right. </p>
<p>Before I wrote this article I tested it but I did something wrong I guess. When I tested it the event got triggered with FileReference but not with FileReferenceList. Now I test it again both didn&#8217;t get triggered. </p>
<p>So in both cases you should declare the FileReference or FileReferenceList outside a function</p>
<p>or you could do it like this:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p129code1'); return false;">View Code</a> ACTIONSCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1291"><td class="code" id="p129code1"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> FileReferenceCall<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">var</span> frl:FileReferenceList = <span style="color: #000000; font-weight: bold;">new</span> FileReferenceList<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	frl.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">SELECT</span>, onSelectFrl<span style="color: #66cc66;">&#41;</span>;
	frl.<span style="color: #006600;">browse</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #000000; font-weight: bold;">function</span> onSelectFrl<span style="color: #66cc66;">&#40;</span>event:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span>
		<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Event: &quot;</span>+event.<span style="color: #006600;">currentTarget</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
	</item>
</channel>
</rss>

