<?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: REQUEST_URI in Flex</title>
	<atom:link href="http://www.pixelbox.net/2007/03/07/request_uri-in-flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pixelbox.net/2007/03/07/request_uri-in-flex/</link>
	<description>Pixelbox, technology development and photography.</description>
	<lastBuildDate>Mon, 08 Feb 2010 11:26:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: phoenix</title>
		<link>http://www.pixelbox.net/2007/03/07/request_uri-in-flex/comment-page-1/#comment-45850</link>
		<dc:creator>phoenix</dc:creator>
		<pubDate>Fri, 11 Sep 2009 19:30:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelbox.net/2007/03/07/request_uri-in-flex/#comment-45850</guid>
		<description>I have been on this referer issue for ages!! 

the :

var url:String = String( ExternalInterface.call(&quot; function(){ return document.location.href.toString();}&quot;));

worked a charm!! Im using as2 and flash 8.. 

as3 is almost the same which is why it was killing me.</description>
		<content:encoded><![CDATA[<p>I have been on this referer issue for ages!! </p>
<p>the :</p>
<p>var url:String = String( ExternalInterface.call(&#8221; function(){ return document.location.href.toString();}&#8221;));</p>
<p>worked a charm!! Im using as2 and flash 8.. </p>
<p>as3 is almost the same which is why it was killing me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nothing to be serious ::PIXNET BLOG::</title>
		<link>http://www.pixelbox.net/2007/03/07/request_uri-in-flex/comment-page-1/#comment-10029</link>
		<dc:creator>Nothing to be serious ::PIXNET BLOG::</dc:creator>
		<pubDate>Wed, 23 May 2007 03:21:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelbox.net/2007/03/07/request_uri-in-flex/#comment-10029</guid>
		<description></description>
		<content:encoded><![CDATA[<p><strong>Flash ä¸­å?µæ¸¬åµŒå…¥é ?é?¢ç¶²å?€&#8230;</strong></p>
<p>Flashåœ¨å…§å»ºæ??ä¾›çš„åŸ·è¡ŒæœŸé–“ç’°å¢ƒè®Šæ•¸ä¸­ï¼Œæ²’æœ‰ç›´æ??ä¾›åµŒå…¥é ?é?¢ä¾†æº?ç¶²å?€è³‡è¨Šï¼Œ\r\nä½†é‚„æ˜¯å?¯ä»¥ç”¨ExternalInterfaceåˆ©ç”¨javascriptå?–å¾—é ?é?¢ç¶²å?€ã€‚\r\nå¦‚æ­¤ä¾¿å?¯ä»¥å?šåˆ°åˆ¤æ–·é ?é?¢åµŒå…¥ä¾†æº?ä¾†æ±ºå®šæ˜¯å?¦åŸ·è¡ŒF&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arthur Clifford</title>
		<link>http://www.pixelbox.net/2007/03/07/request_uri-in-flex/comment-page-1/#comment-9464</link>
		<dc:creator>Arthur Clifford</dc:creator>
		<pubDate>Thu, 10 May 2007 08:06:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelbox.net/2007/03/07/request_uri-in-flex/#comment-9464</guid>
		<description>I happen to be addressing this same problem. I forget where I saw this trick, but this works for me (adapted for your variable names)

var currentUri:String = String( ExternalInterface.call(&quot; function(){ return document.location.href.toString();}&quot;));

So, the idea is that your call statement calls a function defined on the fly and returns the value you are interested in.</description>
		<content:encoded><![CDATA[<p>I happen to be addressing this same problem. I forget where I saw this trick, but this works for me (adapted for your variable names)</p>
<p>var currentUri:String = String( ExternalInterface.call(&#8221; function(){ return document.location.href.toString();}&#8221;));</p>
<p>So, the idea is that your call statement calls a function defined on the fly and returns the value you are interested in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://www.pixelbox.net/2007/03/07/request_uri-in-flex/comment-page-1/#comment-6571</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Fri, 20 Apr 2007 18:57:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelbox.net/2007/03/07/request_uri-in-flex/#comment-6571</guid>
		<description>Where would it be set to never?</description>
		<content:encoded><![CDATA[<p>Where would it be set to never?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.pixelbox.net/2007/03/07/request_uri-in-flex/comment-page-1/#comment-6565</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Fri, 20 Apr 2007 18:19:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelbox.net/2007/03/07/request_uri-in-flex/#comment-6565</guid>
		<description>Of course, this only works if &quot;allowScriptAccess&quot; is not set to &quot;never&quot;.  Which is where I find myself...  :(</description>
		<content:encoded><![CDATA[<p>Of course, this only works if &#8220;allowScriptAccess&#8221; is not set to &#8220;never&#8221;.  Which is where I find myself&#8230;  :(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://www.pixelbox.net/2007/03/07/request_uri-in-flex/comment-page-1/#comment-5842</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Tue, 03 Apr 2007 21:16:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelbox.net/2007/03/07/request_uri-in-flex/#comment-5842</guid>
		<description>Try tracing:

document.location.href

and see what it returns. You shouldn&#039;t be getting that error as you are saying .toString() 

I have never developed in flash though so can&#039;t really help. Sorry</description>
		<content:encoded><![CDATA[<p>Try tracing:</p>
<p>document.location.href</p>
<p>and see what it returns. You shouldn&#8217;t be getting that error as you are saying .toString() </p>
<p>I have never developed in flash though so can&#8217;t really help. Sorry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jot</title>
		<link>http://www.pixelbox.net/2007/03/07/request_uri-in-flex/comment-page-1/#comment-5815</link>
		<dc:creator>jot</dc:creator>
		<pubDate>Tue, 03 Apr 2007 18:43:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelbox.net/2007/03/07/request_uri-in-flex/#comment-5815</guid>
		<description>and i also meant to write
&quot;if i change it to var currentUri:Object&quot;

this is going well =/ sorry for meesing up.</description>
		<content:encoded><![CDATA[<p>and i also meant to write<br />
&#8220;if i change it to var currentUri:Object&#8221;</p>
<p>this is going well =/ sorry for meesing up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jot</title>
		<link>http://www.pixelbox.net/2007/03/07/request_uri-in-flex/comment-page-1/#comment-5813</link>
		<dc:creator>jot</dc:creator>
		<pubDate>Tue, 03 Apr 2007 18:42:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelbox.net/2007/03/07/request_uri-in-flex/#comment-5813</guid>
		<description>damn, i meant: 
when i try in flash8 AS2 i _CAN_ import the package without errors</description>
		<content:encoded><![CDATA[<p>damn, i meant:<br />
when i try in flash8 AS2 i _CAN_ import the package without errors</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jot</title>
		<link>http://www.pixelbox.net/2007/03/07/request_uri-in-flex/comment-page-1/#comment-5812</link>
		<dc:creator>Jot</dc:creator>
		<pubDate>Tue, 03 Apr 2007 18:41:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelbox.net/2007/03/07/request_uri-in-flex/#comment-5812</guid>
		<description>would this work in flash? , when i try in flash8 AS2 i cant import the package without errors  
but: 
&lt;pre&gt;&lt;code&gt;
var currentUri:String = ExternalInterface.call(&quot;document.location.href.toString&quot;);
&lt;/code&gt;&lt;/pre&gt;
gives me an error
&lt;pre&gt;&lt;code&gt;
**Error** Scene=Scene 1, layer=Layer 3, frame=1:Line 6: Type mismatch in assignment statement: found Object where String is required.
     var currentUri:String = ExternalInterface.call(&quot;document.location.href.toString&quot;);
&lt;/code&gt;&lt;/pre&gt;
if i change it to 
&lt;pre&gt;&lt;code&gt;
var currentUri:String then it returns an empty object. 
&lt;/code&gt;&lt;/pre&gt;
:/</description>
		<content:encoded><![CDATA[<p>would this work in flash? , when i try in flash8 AS2 i cant import the package without errors<br />
but: </p>
<pre><code>
var currentUri:String = ExternalInterface.call("document.location.href.toString");
</code></pre>
<p>gives me an error</p>
<pre><code>
**Error** Scene=Scene 1, layer=Layer 3, frame=1:Line 6: Type mismatch in assignment statement: found Object where String is required.
     var currentUri:String = ExternalInterface.call("document.location.href.toString");
</code></pre>
<p>if i change it to </p>
<pre><code>
var currentUri:String then it returns an empty object.
</code></pre>
<p>:/</p>
]]></content:encoded>
	</item>
</channel>
</rss>
