<?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>Bill Richards &#187; Flash</title>
	<atom:link href="http://www.wrichards.com/blog/category/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wrichards.com/blog</link>
	<description>a developer&#039;s blog</description>
	<lastBuildDate>Tue, 20 Jul 2010 16:32:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>PHP base_convert() in AS3</title>
		<link>http://www.wrichards.com/blog/2010/07/php-base_convert-in-as3/</link>
		<comments>http://www.wrichards.com/blog/2010/07/php-base_convert-in-as3/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 16:10:39 +0000</pubDate>
		<dc:creator>Bill</dc:creator>
				<category><![CDATA[Actionscript 3.0]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[base_convert()]]></category>

		<guid isPermaLink="false">http://www.wrichards.com/blog/?p=109</guid>
		<description><![CDATA[Here is a quick example of how to use PHP&#8217;s base convert function in AS3. A lot of people use this function for shorter masked URLs like YouTube. Easy enough but took me a minute to find the equivalent in actionscript. PHP: function encode36($x){ return base_convert($x, 10, 36); } function decode36($x){ return base_convert($x, 36, 10); [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a quick example of how to use PHP&#8217;s base convert function in AS3. A lot of people use this function for shorter masked URLs like YouTube. Easy enough but took me a minute to find the equivalent in actionscript.</p>
<p>PHP:</p>
<pre name="code" class="php">
function encode36($x){
    return base_convert($x, 10, 36);
}
function decode36($x){
    return base_convert($x, 36, 10);
}
</pre>
<p>Actionscript 3:</p>
<pre name="code" class="javascript">
function encode36(x:Number):String{
    return x.toString(36);
}
function decode36(x:String):int {
    return parseInt(x,36);
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.wrichards.com/blog/2010/07/php-base_convert-in-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error calling method on NPObject!</title>
		<link>http://www.wrichards.com/blog/2009/02/error-calling-method-on-npobject/</link>
		<comments>http://www.wrichards.com/blog/2009/02/error-calling-method-on-npobject/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 21:56:41 +0000</pubDate>
		<dc:creator>Bill</dc:creator>
				<category><![CDATA[Actionscript 2.0]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[ExternalInterface]]></category>
		<category><![CDATA[Flash 8]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[NPObject]]></category>

		<guid isPermaLink="false">http://www.wrichards.com/blog/?p=73</guid>
		<description><![CDATA[Have you seen this error? If you work with Flash actionscript and Javascript, you probably have. It can be pretty frustrating the first time you see this error since it&#8217;s not very informative. In my experience, this happened when I was trying to communicate with actionscript via Javascript using ExternalInterface call. The problem was sure [...]]]></description>
			<content:encoded><![CDATA[<p>Have you seen this error? If you work with Flash actionscript and Javascript, you probably have. It can be pretty frustrating the first time you see this error since it&#8217;s not very informative. In my experience, this happened when I was trying to communicate with actionscript via Javascript using <a href="http://www.google.com/url?sa=U&#038;start=1&#038;q=http://livedocs.adobe.com/flash/8/main/00002200.html&#038;ei=vpqUSY6yBqCImQfy7Nz_CQ&#038;usg=AFQjCNESo87OXey_CGP4Q6qDF3vmjSSc1Q">ExternalInterface</a> call. The problem was sure enough a security issue with Flash. The solution for &#8220;Error calling method on NPObject!&#8221; is to add:</p>
<p><code>System.security.allowDomain("mydomain.com");</code> </p>
<p>Add this to the Flash file you&#8217;re communicating with. Keep in mind that <strong><em>www.mydomain.com</em></strong> is different from <strong><em>mydomain.com</em></strong> to Flash.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wrichards.com/blog/2009/02/error-calling-method-on-npobject/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lighttpd, Flash and Crossdomain.xml</title>
		<link>http://www.wrichards.com/blog/2009/02/lighttpd-flash-and-crossdomainxml/</link>
		<comments>http://www.wrichards.com/blog/2009/02/lighttpd-flash-and-crossdomainxml/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 22:39:11 +0000</pubDate>
		<dc:creator>Bill</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[crossdomain.xml]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[lighty]]></category>

		<guid isPermaLink="false">http://wrichards.com/blog/?p=3</guid>
		<description><![CDATA[A few weeks back I ran into a rather odd situation when trying to load an xml file via Actionscript across multiple domains. No matter what I did, it would not load! Typical way to resolve this is to put a crossdomain.xml granting access to the swf host location right? Well, if you&#8217;re planning on [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.wrichards.com/blog/2009/02/lighttpd-flash-and-crossdomainxml/"><img src="http://img11.imageshack.us/img11/2079/lighttpdnh9.png" alt="Lighty" style="float:left" /></a>A few weeks back I ran into a rather odd situation when trying to load an xml file via Actionscript across multiple domains. No matter what I did, it would not load! Typical way to resolve this is to put a crossdomain.xml granting access to the swf host location right? Well, if you&#8217;re planning on using <a title="Lighty" href="http://www.lighttpd.net/" target="_blank">Lighty</a>, a good thing to keep in mind when installing is to set the proper <a title="mimetype.assign options" href="http://redmine.lighttpd.net/projects/lighttpd/wiki/Mimetype.assignDetails" target="_blank">mimetype.assign options</a> in the configuration file. If you do not set this it will default to &#8220;application/octet-stream&#8221; which for some reason Flash (actionscript) does NOT like and will ignore crossdomain.xml. I know it&#8217;s kind of a newbie mistake but I&#8217;m sure one of you will come across the same issue when using it for the first time like I did.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wrichards.com/blog/2009/02/lighttpd-flash-and-crossdomainxml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
