<?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"
	>
<channel>
	<title>Comments on: Get Current URL and Query String Parameters to Flash &#124; Tutorial</title>
	<atom:link href="http://blog.circlecube.com/2008/03/20/get-current-url-and-query-string-parameters-to-flash-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.circlecube.com/2008/03/20/get-current-url-and-query-string-parameters-to-flash-tutorial/</link>
	<description>Evan Mullins</description>
	<pubDate>Tue, 19 Aug 2008 22:03:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Ricky</title>
		<link>http://blog.circlecube.com/2008/03/20/get-current-url-and-query-string-parameters-to-flash-tutorial/#comment-808</link>
		<dc:creator>Ricky</dc:creator>
		<pubDate>Thu, 10 Jul 2008 20:46:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/03/20/get-current-url-and-query-string-parameters-to-flash-tutorial/#comment-808</guid>
		<description>I figured it out I just needed to change the labels on the text boxes they cannot be the same as the Varianle.

Daniel</description>
		<content:encoded><![CDATA[<p>I figured it out I just needed to change the labels on the text boxes they cannot be the same as the Varianle.</p>
<p>Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricky</title>
		<link>http://blog.circlecube.com/2008/03/20/get-current-url-and-query-string-parameters-to-flash-tutorial/#comment-786</link>
		<dc:creator>Ricky</dc:creator>
		<pubDate>Wed, 09 Jul 2008 05:40:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/03/20/get-current-url-and-query-string-parameters-to-flash-tutorial/#comment-786</guid>
		<description>Hi Evan Great Blog it has helped me heaps

I have a problem though. I cannot get the myName and myText fields to fill
The demo works fine but when place the swf from the download on my sever to test these two fields do not fill. the url and params fills fine.

Do you know any reason why this might be I have tried but have not worked it out?

Cheers Ricky</description>
		<content:encoded><![CDATA[<p>Hi Evan Great Blog it has helped me heaps</p>
<p>I have a problem though. I cannot get the myName and myText fields to fill<br />
The demo works fine but when place the swf from the download on my sever to test these two fields do not fill. the url and params fills fine.</p>
<p>Do you know any reason why this might be I have tried but have not worked it out?</p>
<p>Cheers Ricky</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evan Mullins</title>
		<link>http://blog.circlecube.com/2008/03/20/get-current-url-and-query-string-parameters-to-flash-tutorial/#comment-288</link>
		<dc:creator>Evan Mullins</dc:creator>
		<pubDate>Tue, 13 May 2008 17:44:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/03/20/get-current-url-and-query-string-parameters-to-flash-tutorial/#comment-288</guid>
		<description>@Alex's question "Is there something that I’m missing that makes it a bad idea to link to your swf files directly rather than embedding them into an html? "
Please refer to the &lt;a href="http://code.google.com/p/swfobject/wiki/documentation" rel="nofollow"&gt;documentation of swfobject&lt;/a&gt; to see an extensive answer. Or read this enlightening article: &lt;a href="http://www.alistapart.com/articles/flashembedcagematch/" rel="nofollow"&gt;A List Apart &#124; Flash Embedding Cage Match&lt;/a&gt;

@Alex's question "Does it restrict me from using ANY method to access all of my querystring parameters beyond the first?"

@Alex re: Example: http://www.mysite.com/mymovie.swf?name=myname&#38;playall=no
Are you serving swf files in the browser? If so I understand the confusion around using swfobject to embed the file. There are ways to get the full path to the swf and extract the params at the end of the swf path... &lt;a href="http://www.permadi.com/tutorial/flashQueryString/index.html" rel="nofollow"&gt;Permadi's example&lt;/a&gt; and &lt;a href="http://www.google.com/search?q=swf+query+string" rel="nofollow"&gt;many more&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>@Alex&#8217;s question &#8220;Is there something that I’m missing that makes it a bad idea to link to your swf files directly rather than embedding them into an html? &#8221;<br />
Please refer to the <a href="http://code.google.com/p/swfobject/wiki/documentation" onclick="javascript:pageTracker._trackPageview('/outbound/comment/code.google.com');" rel="nofollow">documentation of swfobject</a> to see an extensive answer. Or read this enlightening article: <a href="http://www.alistapart.com/articles/flashembedcagematch/" onclick="javascript:pageTracker._trackPageview('/outbound/comment/www.alistapart.com');" rel="nofollow">A List Apart | Flash Embedding Cage Match</a></p>
<p>@Alex&#8217;s question &#8220;Does it restrict me from using ANY method to access all of my querystring parameters beyond the first?&#8221;</p>
<p>@Alex re: Example: <a href="http://www.mysite.com/mymovie.swf?name=myname&amp;playall=no" onclick="javascript:pageTracker._trackPageview('/outbound/comment/www.mysite.com');" rel="nofollow">http://www.mysite.com/mymovie.swf?name=myname&amp;playall=no</a><br />
Are you serving swf files in the browser? If so I understand the confusion around using swfobject to embed the file. There are ways to get the full path to the swf and extract the params at the end of the swf path&#8230; <a href="http://www.permadi.com/tutorial/flashQueryString/index.html" onclick="javascript:pageTracker._trackPageview('/outbound/comment/www.permadi.com');" rel="nofollow">Permadi&#8217;s example</a> and <a href="http://www.google.com/search?q=swf+query+string" onclick="javascript:pageTracker._trackPageview('/outbound/comment/www.google.com');" rel="nofollow">many more</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://blog.circlecube.com/2008/03/20/get-current-url-and-query-string-parameters-to-flash-tutorial/#comment-286</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 13 May 2008 12:23:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/03/20/get-current-url-and-query-string-parameters-to-flash-tutorial/#comment-286</guid>
		<description>Hi. What you describe in the introduction to your article here seemed to be exactly what I was looking for, mainly because of this "It has been a dilemma for many people to get this information into flash across browsers and without having to rely on flashvars or javascript, but to just have it work.". Well, thats exactly what i wanted to do, so I browsed through your code which seems very appropriate, and then I attempted to implement it. This is where things go wrong.

Step 1: I copied your code example into flash, and manually removed all of the line numbers that appeared on each even numbered space.

Step 2: I used the guideline of your example and imported flash.external.* on the first line of the first frame of my project. however, it seems that flash cs3 doesn't like that, and i had to move that import line into the first line of the .as file, or else it would complain about not being able to use ExternalInterface.

Step 3: i removed some more of the formatting errors that occurred as a result of copying and pasting the code (it didnt recognize the greater and less than symbols properly, so i converted them by hand)

ok so all of that was really no big deal in the grand scheme of things, because after doing that the movie compiles with no flaws. BUT... i notice that the variables are still not being read at all. So i reviewed the instructions again.. and i realized my mistake: Thrown in at the end of the article, just before the actual code is the sentence "I use the new swf object 2 to embed the swf. Go get it here:"

now I start to think to myself, "wait, the swf is embedded with some form of container? what is the purpose of doing all of this if i'm going to have to embed the swf into a page anyhow?". Then to my dismay as I read through the user comments, all the way down at the bottom i see the comment that was left by Ryan Mac, just before mine. Well... I can get over the frustration of the wasted time, thats not the issue, but the whole experience of trying to solve this problem, which landed me at this web site, and countless others before, and I'm sure countless more to come in search of the solution leaves me with 2 underlying questions and I would really appreciate it if someone could help me out here.

Question 1: I don't embed my swf files at all, they are linked to directly, and I would prefer to keep it that way. When i pass a query string into an swf file, the first argument can be read very directly with no problems. Example: http://www.mysite.com/mymovie.swf?name=myname&#38;playall=no
I can access the myname parameter just by saying:
myvar = myname;
that works with no problems every time, but i can never access the second parameter "playall".
thats what lead me to this site... does ANYONE know how i can access all of the variables in the query string without embedding my object? 

and question #2: What is the purpose of this script? I don't understand why anyone would go through the trouble of making the parameters of the querystring itself accessible if you still have to embed the object into an html.

Is there something that I'm missing that makes it a bad idea to link to your swf files directly rather than embedding them into an html? Does it restrict me from using ANY method to access all of my querystring parameters beyond the first?

any answers to these questions would be extremely helpful, thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi. What you describe in the introduction to your article here seemed to be exactly what I was looking for, mainly because of this &#8220;It has been a dilemma for many people to get this information into flash across browsers and without having to rely on flashvars or javascript, but to just have it work.&#8221;. Well, thats exactly what i wanted to do, so I browsed through your code which seems very appropriate, and then I attempted to implement it. This is where things go wrong.</p>
<p>Step 1: I copied your code example into flash, and manually removed all of the line numbers that appeared on each even numbered space.</p>
<p>Step 2: I used the guideline of your example and imported flash.external.* on the first line of the first frame of my project. however, it seems that flash cs3 doesn&#8217;t like that, and i had to move that import line into the first line of the .as file, or else it would complain about not being able to use ExternalInterface.</p>
<p>Step 3: i removed some more of the formatting errors that occurred as a result of copying and pasting the code (it didnt recognize the greater and less than symbols properly, so i converted them by hand)</p>
<p>ok so all of that was really no big deal in the grand scheme of things, because after doing that the movie compiles with no flaws. BUT&#8230; i notice that the variables are still not being read at all. So i reviewed the instructions again.. and i realized my mistake: Thrown in at the end of the article, just before the actual code is the sentence &#8220;I use the new swf object 2 to embed the swf. Go get it here:&#8221;</p>
<p>now I start to think to myself, &#8220;wait, the swf is embedded with some form of container? what is the purpose of doing all of this if i&#8217;m going to have to embed the swf into a page anyhow?&#8221;. Then to my dismay as I read through the user comments, all the way down at the bottom i see the comment that was left by Ryan Mac, just before mine. Well&#8230; I can get over the frustration of the wasted time, thats not the issue, but the whole experience of trying to solve this problem, which landed me at this web site, and countless others before, and I&#8217;m sure countless more to come in search of the solution leaves me with 2 underlying questions and I would really appreciate it if someone could help me out here.</p>
<p>Question 1: I don&#8217;t embed my swf files at all, they are linked to directly, and I would prefer to keep it that way. When i pass a query string into an swf file, the first argument can be read very directly with no problems. Example: <a href="http://www.mysite.com/mymovie.swf?name=myname&amp;playall=no" onclick="javascript:pageTracker._trackPageview('/outbound/comment/www.mysite.com');" rel="nofollow">http://www.mysite.com/mymovie.swf?name=myname&amp;playall=no</a><br />
I can access the myname parameter just by saying:<br />
myvar = myname;<br />
that works with no problems every time, but i can never access the second parameter &#8220;playall&#8221;.<br />
thats what lead me to this site&#8230; does ANYONE know how i can access all of the variables in the query string without embedding my object? </p>
<p>and question #2: What is the purpose of this script? I don&#8217;t understand why anyone would go through the trouble of making the parameters of the querystring itself accessible if you still have to embed the object into an html.</p>
<p>Is there something that I&#8217;m missing that makes it a bad idea to link to your swf files directly rather than embedding them into an html? Does it restrict me from using ANY method to access all of my querystring parameters beyond the first?</p>
<p>any answers to these questions would be extremely helpful, thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Mac</title>
		<link>http://blog.circlecube.com/2008/03/20/get-current-url-and-query-string-parameters-to-flash-tutorial/#comment-277</link>
		<dc:creator>Ryan Mac</dc:creator>
		<pubDate>Thu, 08 May 2008 21:17:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/03/20/get-current-url-and-query-string-parameters-to-flash-tutorial/#comment-277</guid>
		<description>Hi Guys,

Just to let everyone know...please dont use this if you arent using swfobject.
It doesnt work. Dont even waist your time. Its been two long hours. Two very long hours.
Ramble ramble ramble...</description>
		<content:encoded><![CDATA[<p>Hi Guys,</p>
<p>Just to let everyone know&#8230;please dont use this if you arent using swfobject.<br />
It doesnt work. Dont even waist your time. Its been two long hours. Two very long hours.<br />
Ramble ramble ramble&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: garrett</title>
		<link>http://blog.circlecube.com/2008/03/20/get-current-url-and-query-string-parameters-to-flash-tutorial/#comment-248</link>
		<dc:creator>garrett</dc:creator>
		<pubDate>Tue, 29 Apr 2008 23:30:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/03/20/get-current-url-and-query-string-parameters-to-flash-tutorial/#comment-248</guid>
		<description>You saved me alot of time friend.

Thanks.</description>
		<content:encoded><![CDATA[<p>You saved me alot of time friend.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evan Mullins</title>
		<link>http://blog.circlecube.com/2008/03/20/get-current-url-and-query-string-parameters-to-flash-tutorial/#comment-247</link>
		<dc:creator>Evan Mullins</dc:creator>
		<pubDate>Tue, 29 Apr 2008 15:41:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/03/20/get-current-url-and-query-string-parameters-to-flash-tutorial/#comment-247</guid>
		<description>Thanks. I can't take all the credit, Abdul Qabiz had a similar example for Flex. 

A real testing scenario would be ideal: to see what browser supports this and any problems they have and so forth. 
I've heard many reports, but none are all encompassing... I know it works in firefox and IE7, i've heard it works in IE6, safari and opera, but haven't personally tested it. It seems to work for some people and not for others, so I'm guessing it just takes some troubleshooting...
I did have some trouble in IE at first, but then after I used swfobject it worked just fine, so that may be the problem in safari? 
Please let us know what you come up with!</description>
		<content:encoded><![CDATA[<p>Thanks. I can&#8217;t take all the credit, Abdul Qabiz had a similar example for Flex. </p>
<p>A real testing scenario would be ideal: to see what browser supports this and any problems they have and so forth.<br />
I&#8217;ve heard many reports, but none are all encompassing&#8230; I know it works in firefox and IE7, i&#8217;ve heard it works in IE6, safari and opera, but haven&#8217;t personally tested it. It seems to work for some people and not for others, so I&#8217;m guessing it just takes some troubleshooting&#8230;<br />
I did have some trouble in IE at first, but then after I used swfobject it worked just fine, so that may be the problem in safari?<br />
Please let us know what you come up with!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: elastic</title>
		<link>http://blog.circlecube.com/2008/03/20/get-current-url-and-query-string-parameters-to-flash-tutorial/#comment-245</link>
		<dc:creator>elastic</dc:creator>
		<pubDate>Tue, 29 Apr 2008 05:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/03/20/get-current-url-and-query-string-parameters-to-flash-tutorial/#comment-245</guid>
		<description>this is the best thing you did, and i appreciate it sooo much.  i am having one weird problem- if i look at:

file:///Library/WebServer/Documents/mysite/getURLParams3.html?myName=harry&#38;myText=knuckles

through my browser this works fine.  if i look at it :

http://127.0.0.1/mysite/getURLParams3.html?myName= harry&#38;myText=knuckles

this does not work in safari.  however, both opera and firefox have no complaints.

maybe a swfobject / safari issue?  but safari is OK with it to some degree :-S</description>
		<content:encoded><![CDATA[<p>this is the best thing you did, and i appreciate it sooo much.  i am having one weird problem- if i look at:</p>
<p>file:///Library/WebServer/Documents/mysite/getURLParams3.html?myName=harry&amp;myText=knuckles</p>
<p>through my browser this works fine.  if i look at it :</p>
<p><a href="http://127.0.0.1/mysite/getURLParams3.html?myName=" onclick="javascript:pageTracker._trackPageview('/outbound/comment/127.0.0.1');" rel="nofollow">http://127.0.0.1/mysite/getURLParams3.html?myName=</a> harry&amp;myText=knuckles</p>
<p>this does not work in safari.  however, both opera and firefox have no complaints.</p>
<p>maybe a swfobject / safari issue?  but safari is OK with it to some degree :-S</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: elastic</title>
		<link>http://blog.circlecube.com/2008/03/20/get-current-url-and-query-string-parameters-to-flash-tutorial/#comment-244</link>
		<dc:creator>elastic</dc:creator>
		<pubDate>Tue, 29 Apr 2008 05:08:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/03/20/get-current-url-and-query-string-parameters-to-flash-tutorial/#comment-244</guid>
		<description>is safari compatible? i have this reading perfectly in both firefox and in opera, but safari acting weird.  not setting the url.</description>
		<content:encoded><![CDATA[<p>is safari compatible? i have this reading perfectly in both firefox and in opera, but safari acting weird.  not setting the url.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: elastic</title>
		<link>http://blog.circlecube.com/2008/03/20/get-current-url-and-query-string-parameters-to-flash-tutorial/#comment-242</link>
		<dc:creator>elastic</dc:creator>
		<pubDate>Mon, 28 Apr 2008 21:14:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.circlecube.com/2008/03/20/get-current-url-and-query-string-parameters-to-flash-tutorial/#comment-242</guid>
		<description>nevermind first post, did something wrong (l left out the expressInstall attribute on the swfobject.  :-) please disregard!!!

also, again, thanks for this awesome post.</description>
		<content:encoded><![CDATA[<p>nevermind first post, did something wrong (l left out the expressInstall attribute on the swfobject.  <img src='http://blog.circlecube.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> please disregard!!!</p>
<p>also, again, thanks for this awesome post.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
