<?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: ActionScript 2 &#8211; Find File Extension</title>
	<atom:link href="http://www.bensonarts.com/flash/actionscript-find-file-extension/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bensonarts.com/flash/actionscript-find-file-extension/</link>
	<description>DFW Interactive Designer/Developer</description>
	<lastBuildDate>Sat, 02 Jan 2010 17:01:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: admin</title>
		<link>http://www.bensonarts.com/flash/actionscript-find-file-extension/comment-page-1/#comment-1026</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 01 Oct 2009 17:04:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.bensonarts.com/?p=70#comment-1026</guid>
		<description>You&#039;re right, thanks.</description>
		<content:encoded><![CDATA[<p>You&#8217;re right, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ame</title>
		<link>http://www.bensonarts.com/flash/actionscript-find-file-extension/comment-page-1/#comment-1025</link>
		<dc:creator>ame</dc:creator>
		<pubDate>Thu, 01 Oct 2009 17:00:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.bensonarts.com/?p=70#comment-1025</guid>
		<description>you have a typo in your code:
var fileExtension:String = myvar.substr(file.lastIndexOf(&#039;.&#039;)+1, file.length-

should be:
var fileExtension:String = file.substr(file.lastIndexOf(&#039;.&#039;)+1, file.length-

see the &quot;myvar&quot; -&gt; &quot;file&quot;

thanks anyway, works perfect!</description>
		<content:encoded><![CDATA[<p>you have a typo in your code:<br />
var fileExtension:String = myvar.substr(file.lastIndexOf(&#8216;.&#8217;)+1, file.length-</p>
<p>should be:<br />
var fileExtension:String = file.substr(file.lastIndexOf(&#8216;.&#8217;)+1, file.length-</p>
<p>see the &#8220;myvar&#8221; -&gt; &#8220;file&#8221;</p>
<p>thanks anyway, works perfect!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.bensonarts.com/flash/actionscript-find-file-extension/comment-page-1/#comment-99</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 21 Apr 2009 19:09:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.bensonarts.com/?p=70#comment-99</guid>
		<description>Thanks Luiz! 

Yours is a lot better.</description>
		<content:encoded><![CDATA[<p>Thanks Luiz! </p>
<p>Yours is a lot better.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luiz Fernando</title>
		<link>http://www.bensonarts.com/flash/actionscript-find-file-extension/comment-page-1/#comment-98</link>
		<dc:creator>Luiz Fernando</dc:creator>
		<pubDate>Tue, 21 Apr 2009 18:42:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.bensonarts.com/?p=70#comment-98</guid>
		<description>Or you can seek for the last dot, where anything beyond is the extension:

var myvar:String = &quot;movie.flv&quot;;
var fileExtension:String = myvar.substr(myvar.lastIndexOf(&#039;.&#039;)+1, myvar.length-myvar.lastIndexOf(&#039;.&#039;));
trace(fileExtension);

this works with all extension sizes :]</description>
		<content:encoded><![CDATA[<p>Or you can seek for the last dot, where anything beyond is the extension:</p>
<p>var myvar:String = &#8220;movie.flv&#8221;;<br />
var fileExtension:String = myvar.substr(myvar.lastIndexOf(&#8216;.&#8217;)+1, myvar.length-myvar.lastIndexOf(&#8216;.&#8217;));<br />
trace(fileExtension);</p>
<p>this works with all extension sizes :]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
