<?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: Decoding URL encoded strings in a Flash application using the URLVariables class in ActionScript 3.0</title>
	<atom:link href="http://actionscriptexamples.com/2008/02/27/decoding-url-encoded-strings-in-a-flash-application-using-the-urlvariables-class-in-actionscript-30/feed/" rel="self" type="application/rss+xml" />
	<link>http://actionscriptexamples.com/2008/02/27/decoding-url-encoded-strings-in-a-flash-application-using-the-urlvariables-class-in-actionscript-30/</link>
	<description>A bunch of ActionScript 2.0 and ActionScript 3.0 examples*</description>
	<lastBuildDate>Wed, 03 Mar 2010 17:33:26 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: alex</title>
		<link>http://actionscriptexamples.com/2008/02/27/decoding-url-encoded-strings-in-a-flash-application-using-the-urlvariables-class-in-actionscript-30/comment-page-1/#comment-616</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Mon, 14 Dec 2009 12:19:38 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/2008/02/27/decoding-url-encoded-strings-in-a-flash-application-using-the-urlvariables-class-in-actionscript-30/#comment-616</guid>
		<description>var urlVariables:URLVariables = new URLVariables(infoTxt.data);
must be
var urlVariables:URLVariables = new URLVariables(evt.target.data);</description>
		<content:encoded><![CDATA[<p>var urlVariables:URLVariables = new URLVariables(infoTxt.data);<br />
must be<br />
var urlVariables:URLVariables = new URLVariables(evt.target.data);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Najeeb</title>
		<link>http://actionscriptexamples.com/2008/02/27/decoding-url-encoded-strings-in-a-flash-application-using-the-urlvariables-class-in-actionscript-30/comment-page-1/#comment-614</link>
		<dc:creator>Najeeb</dc:creator>
		<pubDate>Fri, 11 Dec 2009 05:14:45 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/2008/02/27/decoding-url-encoded-strings-in-a-flash-application-using-the-urlvariables-class-in-actionscript-30/#comment-614</guid>
		<description>Very helpful....I was wondering how do you deal with name value pairs in URLVariable. Lets say I have an array of name value pairs.
Thanks</description>
		<content:encoded><![CDATA[<p>Very helpful&#8230;.I was wondering how do you deal with name value pairs in URLVariable. Lets say I have an array of name value pairs.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Régis</title>
		<link>http://actionscriptexamples.com/2008/02/27/decoding-url-encoded-strings-in-a-flash-application-using-the-urlvariables-class-in-actionscript-30/comment-page-1/#comment-366</link>
		<dc:creator>Régis</dc:creator>
		<pubDate>Tue, 27 Jan 2009 19:09:20 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/2008/02/27/decoding-url-encoded-strings-in-a-flash-application-using-the-urlvariables-class-in-actionscript-30/#comment-366</guid>
		<description>Just a little correction
&lt;pre lang=&quot;actionscript3&quot;&gt;
// Suppose there&#039;s a variable ldap inside a txt
//&amp;ldap=blah blah
// Instantiate like myMap:Map = new Map(&quot;filename.txt&quot;);

package {
    import flash.events.*;
    import flash.net.*;
    public class Map {

        public function Map(file:String):void {
            var url:URLRequest = new URLRequest(file);
            var infoTxt:URLLoader = new URLLoader();
            infoTxt.dataFormat = URLLoaderDataFormat.TEXT;
            infoTxt.load(url);
            infoTxt.addEventListener(Event.COMPLETE, readTxtFile);

            function readTxtFile( evt:Event ):void {
                var urlVariables:URLVariables = new URLVariables(infoTxt.data);
                //for (var prop:String in urlVariables)
                    trace(&quot;Variable ldap: &quot;+urlVariables.ldat);
            }
        }
    }
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Just a little correction</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #009900;">// Suppose there's a variable ldap inside a txt</span>
<span style="color: #009900;">//&amp;amp;ldap=blah blah</span>
<span style="color: #009900;">// Instantiate like myMap:Map = new Map(&quot;filename.txt&quot;);</span>
&nbsp;
<span style="color: #9900cc; font-weight: bold;">package</span> <span style="color: #000000;">&#123;</span>
    <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<span style="color: #000000; font-weight: bold;">*</span>;
    <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.net</span>.<span style="color: #000000; font-weight: bold;">*</span>;
    <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> Map <span style="color: #000000;">&#123;</span>
&nbsp;
        <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> Map<span style="color: #000000;">&#40;</span>file<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">String</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
            <span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">url</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">URLRequest</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">URLRequest</span><span style="color: #000000;">&#40;</span>file<span style="color: #000000;">&#41;</span>;
            <span style="color: #6699cc; font-weight: bold;">var</span> infoTxt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">URLLoader</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">URLLoader</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
            infoTxt.<span style="color: #004993;">dataFormat</span> = <span style="color: #004993;">URLLoaderDataFormat</span>.<span style="color: #004993;">TEXT</span>;
            infoTxt.<span style="color: #004993;">load</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">url</span><span style="color: #000000;">&#41;</span>;
            infoTxt.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">COMPLETE</span>, readTxtFile<span style="color: #000000;">&#41;</span>;
&nbsp;
            <span style="color: #339966; font-weight: bold;">function</span> readTxtFile<span style="color: #000000;">&#40;</span> evt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Event</span> <span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
                <span style="color: #6699cc; font-weight: bold;">var</span> urlVariables<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">URLVariables</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">URLVariables</span><span style="color: #000000;">&#40;</span>infoTxt.<span style="color: #004993;">data</span><span style="color: #000000;">&#41;</span>;
                <span style="color: #009900;">//for (var prop:String in urlVariables)</span>
                    <span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;Variable ldap: &quot;</span><span style="color: #000000; font-weight: bold;">+</span>urlVariables.ldat<span style="color: #000000;">&#41;</span>;
            <span style="color: #000000;">&#125;</span>
        <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

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