<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ActionScript Scraps &#187; javascript</title>
	<atom:link href="http://blog.sitedaniel.com/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sitedaniel.com</link>
	<description>Flash, Flex and AIR development</description>
	<lastBuildDate>Wed, 28 Jul 2010 11:15:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Using an &#8216;onclick&#8217; event to dynamically load a SWF</title>
		<link>http://blog.sitedaniel.com/2009/10/using-an-onclick-event-to-dynamically-load-a-swf/</link>
		<comments>http://blog.sitedaniel.com/2009/10/using-an-onclick-event-to-dynamically-load-a-swf/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 13:31:09 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[dynamic]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[swfobject]]></category>

		<guid isPermaLink="false">http://blog.sitedaniel.com/?p=398</guid>
		<description><![CDATA[Here is an excellent post about how to use an 'onclick' event to dynamically load a SWF. The great thing about this example is that the javascript will dynamically add or remove the required DIV tag needed to embed the SWF. link]]></description>
			<content:encoded><![CDATA[<p><a href="http://pipwerks.com/lab/swfobject/load-onclick/2.0/index.html">Here is an excellent post</a> about how to use an 'onclick' event to dynamically load a SWF. The great thing about this example is that the javascript will dynamically add or remove the required DIV tag needed to embed the SWF. </p>
<p><a href="http://pipwerks.com/lab/swfobject/load-onclick/2.0/index.html">link</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sitedaniel.com/2009/10/using-an-onclick-event-to-dynamically-load-a-swf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UK Postcode Mapper Firefox Plug-in updated</title>
		<link>http://blog.sitedaniel.com/2009/09/uk-postcode-mapper-firefox-plug-in-updated/</link>
		<comments>http://blog.sitedaniel.com/2009/09/uk-postcode-mapper-firefox-plug-in-updated/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 15:27:19 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://blog.sitedaniel.com/?p=378</guid>
		<description><![CDATA[I've just updated UK Postcode Mapper Firefox plug-in to support Firefox version 3.5.* Once you've added the button to your toolbar, you can see any UK post code on a map in only two clicks.]]></description>
			<content:encoded><![CDATA[<p>I've just updated <a href="https://addons.mozilla.org/en-US/firefox/addon/10413">UK Postcode Mapper</a> Firefox plug-in to support Firefox version 3.5.*</p>
<p>Once you've added the button to your toolbar, you can see any UK post code on a map in only two clicks.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sitedaniel.com/2009/09/uk-postcode-mapper-firefox-plug-in-updated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox Extension &#8211; reviews needed!</title>
		<link>http://blog.sitedaniel.com/2009/03/firefox-extension-reviews-needed/</link>
		<comments>http://blog.sitedaniel.com/2009/03/firefox-extension-reviews-needed/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 12:24:21 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://blog.sitedaniel.com/?p=226</guid>
		<description><![CDATA[My first Firefox Extension UK Postcode Mapper has had over 100 downloads now but only one review. It will not leave the 'experimental' sandbox until it has more than 4 reviews. If anyone could please download it and review it (there really isn't that much to it), it would be appreciated!]]></description>
			<content:encoded><![CDATA[<p>My first Firefox Extension <a href="https://addons.mozilla.org/en-US/firefox/addon/10413">UK Postcode Mapper</a> has had over 100 downloads now but only one review. It will not leave the 'experimental' sandbox until it has more than 4 reviews. If anyone could please download it and review it (there really isn't that much to it), it would be appreciated!</p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/10413"><img src="http://blog.sitedaniel.com/wp-content/uploads/2009/02/postcode_window.png" alt="postcode_window" title="postcode_window" width="235" height="183" class="alignnone size-full wp-image-165" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sitedaniel.com/2009/03/firefox-extension-reviews-needed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>UK Postcode Mapper &#8211; Firefox Extension</title>
		<link>http://blog.sitedaniel.com/2009/01/uk-postcode-mapper-firefox-extension/</link>
		<comments>http://blog.sitedaniel.com/2009/01/uk-postcode-mapper-firefox-extension/#comments</comments>
		<pubDate>Sun, 18 Jan 2009 14:08:17 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[postcode]]></category>

		<guid isPermaLink="false">http://blog.sitedaniel.com/?p=144</guid>
		<description><![CDATA[Download the UK Postcode Mapper Firefox extension here: UK Postcode Mapper This is my first Firefox Extension. It searches the current page you are browsing for any UK Postcode. It then shows you a list of all postcodes on a small popup window. Then you just click on the postcode you would like to see [...]]]></description>
			<content:encoded><![CDATA[<p>Download the UK Postcode Mapper Firefox extension here:</p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/10413">UK Postcode Mapper</a></p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/10413"><img class="alignnone size-full wp-image-165" title="postcode_window" src="http://blog.sitedaniel.com/wp-content/uploads/2009/02/postcode_window.png" alt="postcode_window" width="235" height="183" /><br />
</a></p>
<p>This is my first Firefox Extension. It searches the current page you are browsing for any UK Postcode. It then shows you a list of all postcodes on a small popup window. Then you just click on the postcode you would like to see on a map and (by default) a new tab opens with the postcode mapped in Google Maps. You can change the settings to open in a new window and also change the default map provider from Google to MultiMap or StreetMap.<br />
I built this extension to learn how Firefox Extensions work and also to make my life easier as I always seem to be cutting and pasting postcodes into Google Maps to see where places are in London. After installing this you can see any UK postcode on a map in only 2 clicks! (That is saving a copy + open new window + type in maps.google.co.uk + paste + an enter!)</p>
<p>Here you can change the default settings</p>
<p><img class="size-full wp-image-158" title="settings_window" src="http://blog.sitedaniel.com/wp-content/uploads/2009/02/settings_window.png" alt="" width="235" height="214" /></p>
<p>I'd recommend adding a button to your Toolbar. This can be done by right-clicking on your toolbar and selecting 'Customise...'. Then you can drag and drop the 'Map postcodes' button.</p>
<p>This extension can also be accessed from the Tools menu.</p>
<p><img class="size-full wp-image-159" title="tools_menu" src="http://blog.sitedaniel.com/wp-content/uploads/2009/02/tools_menu.png" alt="" width="284" height="323" /></p>
<p>Please leave me any feedback, suggestions or complaints in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sitedaniel.com/2009/01/uk-postcode-mapper-firefox-extension/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>FlashVars AS3 &#8211; getting values from the URL string</title>
		<link>http://blog.sitedaniel.com/2008/12/flashvars-as3-getting-values-from-the-url-string/</link>
		<comments>http://blog.sitedaniel.com/2008/12/flashvars-as3-getting-values-from-the-url-string/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 12:03:11 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[as3.0]]></category>
		<category><![CDATA[flashvars]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://blog.sitedaniel.com/?p=123</guid>
		<description><![CDATA[Getting values from the URL string in AS3 isn't very complicated. First you need to set up your html to pass these into the SWF using a javascript function: &#160; &#60;script language=&#34;javascript&#34;&#62; function gup&#40;name&#41;&#123; name = name.replace&#40;/&#91;\&#91;&#93;/,&#34;\\\[&#34;&#41;.replace&#40;/&#91;\&#93;&#93;/,&#34;\\\]&#34;&#41;; var regexS = &#34;[\\?&#38;]&#34;+name+&#34;=([^&#38;#]*)&#34;; var regex = new RegExp&#40; regexS &#41;; var results = regex.exec&#40; window.location.href &#41;; if&#40; [...]]]></description>
			<content:encoded><![CDATA[<p>Getting values from the URL string in AS3 isn't very complicated. First you need to set up your html to pass these into the SWF using a javascript function:</p>
<pre class="javascript">&nbsp;
&lt;script language=<span style="color: #3366CC;">&quot;javascript&quot;</span>&gt;
<span style="color: #003366; font-weight: bold;">function</span> gup<span style="color: #66cc66;">&#40;</span><span style="color: #000066;">name</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
    <span style="color: #000066;">name</span> = <span style="color: #000066;">name</span>.<span style="color: #006600;">replace</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066FF;">/<span style="color: #66cc66;">&#91;</span>\<span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span>/</span>,<span style="color: #3366CC;">&quot;<span style="color: #000099; font-weight: bold;">\\</span><span style="color: #000099; font-weight: bold;">\[</span>&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">replace</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066FF;">/<span style="color: #66cc66;">&#91;</span>\<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>/</span>,<span style="color: #3366CC;">&quot;<span style="color: #000099; font-weight: bold;">\\</span><span style="color: #000099; font-weight: bold;">\]</span>&quot;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #003366; font-weight: bold;">var</span> regexS = <span style="color: #3366CC;">&quot;[<span style="color: #000099; font-weight: bold;">\\</span>?&amp;]&quot;</span>+<span style="color: #000066;">name</span>+<span style="color: #3366CC;">&quot;=([^&amp;#]*)&quot;</span>;
    <span style="color: #003366; font-weight: bold;">var</span> regex = <span style="color: #003366; font-weight: bold;">new</span> RegExp<span style="color: #66cc66;">&#40;</span> regexS <span style="color: #66cc66;">&#41;</span>;
    <span style="color: #003366; font-weight: bold;">var</span> results = regex.<span style="color: #006600;">exec</span><span style="color: #66cc66;">&#40;</span> window.<span style="color: #006600;">location</span>.<span style="color: #006600;">href</span> <span style="color: #66cc66;">&#41;</span>;
    <span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span> results == <span style="color: #003366; font-weight: bold;">null</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #3366CC;">&quot;&quot;</span>;
    <span style="color: #66cc66;">&#125;</span>  <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #66cc66;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">return</span> results<span style="color: #66cc66;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #66cc66;">&#93;</span>;
    <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&lt;/script&gt;
&nbsp;</pre>
<p>Place this inside your html.<br />
Then if you are using the default HTML publishing you need to set up your SWF to take the variable. In this example I'm looking for a variable called 'transition'</p>
<pre class="javascript">&nbsp;
&lt;script language=<span style="color: #3366CC;">&quot;javascript&quot;</span>&gt;
	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>AC_FL_RunContent == <span style="color: #CC0000;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		<span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;This page requires AC_RunActiveContent.js.&quot;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #66cc66;">&#123;</span>
		AC_FL_RunContent<span style="color: #66cc66;">&#40;</span>
			<span style="color: #3366CC;">'codebase'</span>, <span style="color: #3366CC;">'http://download.macromedia.com...
			'</span>width<span style="color: #3366CC;">', '</span><span style="color: #CC0000;">100</span>%<span style="color: #3366CC;">',
			'</span>height<span style="color: #3366CC;">', '</span><span style="color: #CC0000;">100</span>%<span style="color: #3366CC;">',
			'</span>src<span style="color: #3366CC;">', '</span>main<span style="color: #3366CC;">',
			'</span>quality<span style="color: #3366CC;">', '</span>high<span style="color: #3366CC;">',
			'</span>pluginspage<span style="color: #3366CC;">', '</span>http:<span style="color: #009900; font-style: italic;">//www.macromedia.c...</span>
			<span style="color: #3366CC;">'align'</span>, <span style="color: #3366CC;">'middle'</span>,
			<span style="color: #3366CC;">'play'</span>, <span style="color: #3366CC;">'true'</span>,
			<span style="color: #3366CC;">'loop'</span>, <span style="color: #3366CC;">'true'</span>,
			<span style="color: #3366CC;">'scale'</span>, <span style="color: #3366CC;">'exactfit'</span>,
			<span style="color: #3366CC;">'wmode'</span>, <span style="color: #3366CC;">'window'</span>,
			<span style="color: #3366CC;">'devicefont'</span>, <span style="color: #3366CC;">'false'</span>,
			<span style="color: #3366CC;">'id'</span>, <span style="color: #3366CC;">'main'</span>,
			<span style="color: #3366CC;">'bgcolor'</span>, <span style="color: #3366CC;">'#ffffff'</span>,
			<span style="color: #3366CC;">'name'</span>, <span style="color: #3366CC;">'main'</span>,
			<span style="color: #3366CC;">'menu'</span>, <span style="color: #3366CC;">'true'</span>,
			<span style="color: #3366CC;">'FlashVars'</span>, <span style="color: #3366CC;">'transition='</span>+gup<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;transition&quot;</span><span style="color: #66cc66;">&#41;</span>,
			<span style="color: #3366CC;">'allowFullScreen'</span>, <span style="color: #3366CC;">'true'</span>,
			<span style="color: #3366CC;">'allowScriptAccess'</span>,<span style="color: #3366CC;">'sameDomain'</span>,
			<span style="color: #3366CC;">'movie'</span>, <span style="color: #3366CC;">'main'</span>,
			<span style="color: #3366CC;">'salign'</span>, <span style="color: #3366CC;">''</span>
			<span style="color: #66cc66;">&#41;</span>; <span style="color: #009900; font-style: italic;">//end AC code</span>
	<span style="color: #66cc66;">&#125;</span>
&lt;/script&gt;
&nbsp;
...
&lt;param <span style="color: #000066;">name</span>=<span style="color: #3366CC;">&quot;scale&quot;</span> value=<span style="color: #3366CC;">&quot;exactfit&quot;</span> /&gt;
&lt;param <span style="color: #000066;">name</span>=<span style="color: #3366CC;">&quot;bgcolor&quot;</span> value=<span style="color: #3366CC;">&quot;#ffffff&quot;</span> /&gt;
&lt;param <span style="color: #000066;">name</span>=<span style="color: #3366CC;">&quot;FlashVars&quot;</span> value=<span style="color: #3366CC;">&quot;transition=&quot;</span>+gup<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;transition&quot;</span><span style="color: #66cc66;">&#41;</span> /&gt;
&lt;embed src=<span style="color: #3366CC;">&quot;main.swf&quot;</span> quality=<span style="color: #3366CC;">&quot;high&quot;</span> scale=<span style="color: #3366CC;">&quot;exactfit&quot;</span> ... /&gt;
...
&nbsp;</pre>
<p>The important lines are:</p>
<p><strong>'FlashVars', 'transition='+gup("transition"),</strong><br />
and<br />
<strong>param name="FlashVars" value="transition="+gup("transition")</strong></p>
<p>Here we are calling the javascript function to return the value that matches 'transition'. Then this gets passed to the SWF.</p>
<p>Inside the flash this can be accessed with:</p>
<pre class="actionscript">&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> sTrans:<span style="color: #0066CC;">String</span> = <span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">stage</span>.<span style="color: #006600;">loaderInfo</span>.<span style="color: #006600;">parameters</span>.<span style="color: #006600;">transition</span><span style="color: #66cc66;">&#41;</span>
&nbsp;</pre>
<p>Then you can get variables from the URL string:<br />
<strong></p>
<p>http://www.sitedaniel.com/index.html?transition=myvalue</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sitedaniel.com/2008/12/flashvars-as3-getting-values-from-the-url-string/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Getting FlashVars from the URL &#8211; javascript function</title>
		<link>http://blog.sitedaniel.com/2008/10/getting-flashvars-from-the-url-javascript-function/</link>
		<comments>http://blog.sitedaniel.com/2008/10/getting-flashvars-from-the-url-javascript-function/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 09:00:25 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flashvars]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://blog.sitedaniel.com/?p=98</guid>
		<description><![CDATA[Here's a very handy javascript function to grab FlashVars from the URL. 'GUP' Get URL Parameters can sit in your html or in an external js file. function gup(name){ name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regexS = "[\\?&#038;]"+name+"=([^&#]*)"; var regex = new RegExp( regexS ); var results = regex.exec( window.location.href ); if( results == null ) return [...]]]></description>
			<content:encoded><![CDATA[<p>Here's a very handy javascript function to grab FlashVars from the URL. 'GUP' Get URL Parameters can sit in your html or in an external js file.</p>
<pre code="javascript">
function gup(name){
    name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
    var regexS = "[\\?&]"+name+"=([^&#]*)";
    var regex = new RegExp( regexS );
    var results = regex.exec( window.location.href );
    if( results == null ) return "";
    else return results[1];
}
</pre>
<p>And then when you create your SWF object, pass in the value name you are looking for (in this case 'page')</p>
<pre code="javascript">
var so = new SWFObject("loader.swf?page="+gup('page'), ...
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.sitedaniel.com/2008/10/getting-flashvars-from-the-url-javascript-function/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Opening Pop-up windows from Flash</title>
		<link>http://blog.sitedaniel.com/2008/06/opening-pop-up-windows-from-flash/</link>
		<comments>http://blog.sitedaniel.com/2008/06/opening-pop-up-windows-from-flash/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 13:30:53 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[as2.0]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://86.18.184.155/sitedaniel/?p=49</guid>
		<description><![CDATA[Recently I read that the best way to open pop-up windows from Flash was to use the ExternalInterface class. I found some code that looked good but it didn't work in Safari on a Mac. if (ExternalInterface.available) { ExternalInterface.call("window.open", "popup.html", "win", "height=300, width=400, toolbar=no, scrollbars=yes"); } else { getURL('popup.html', '_blank'); } However it isn't that [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I read that the best way to open pop-up windows from Flash was to use the ExternalInterface class. I found some code that looked good but it didn't work in Safari on a Mac.</p>
<pre>
if (ExternalInterface.available) {
	ExternalInterface.call("window.open",
				"popup.html",
				"win",
				"height=300,
				width=400,
				toolbar=no,
				scrollbars=yes");
} else {
	getURL('popup.html', '_blank');
}</pre>
<p>However it isn't that hard to just use getURL and call a javascript function set in the html page:</p>
<pre>
//javascript
	function openPopup() {
		winWidth = 450;
		winHeight = 680;
		screenWidth = screen.availWidth;
		screenHeight = screen.availHeight;
		if (screenWidth &lt; winWidth) {
			winWidth = screenWidth;
		}
		if (screenHeight &lt; winHeight) {
			winHeight = screenHeight;
		}
		winTop = (screenHeight - winHeight) / 2;
		winLeft = (screenWidth - winWidth) / 2;
		window.open(\'page.html\',\'Title\',\'width=450,
				height=680,scrollbars=no,
				status=no,resizeable=yes\'+ \',
				left=\' + winLeft + \',
				top=\' + winTop);
		//window.focus();
	}</pre>
<p>So far this works in all browsers.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sitedaniel.com/2008/06/opening-pop-up-windows-from-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>URL encoding in Javscript</title>
		<link>http://blog.sitedaniel.com/2008/02/url-encoding-in-javscript/</link>
		<comments>http://blog.sitedaniel.com/2008/02/url-encoding-in-javscript/#comments</comments>
		<pubDate>Mon, 18 Feb 2008 20:24:43 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://86.21.85.122/?p=7</guid>
		<description><![CDATA[After almost freaking out about a problem with FlashVars and a URL string variable that contained many ampersands (&#38;) I couldn't work out how to pass the URL in without Flash splitting the string up into separate variables until I came across this lovely JS function encodeURIComponent(...) This is a good one to remember]]></description>
			<content:encoded><![CDATA[<p>After almost freaking out about a problem with FlashVars and a URL string variable that contained many ampersands (&amp;) I couldn't work out how to pass the URL in without Flash splitting the string up into separate variables until I came across this lovely JS function</p>
<p><strong>        encodeURIComponent(...)</strong></p>
<p>This is a good one to remember</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sitedaniel.com/2008/02/url-encoding-in-javscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
