<?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>Inspired Robot &#187; Actionscript 3.0</title>
	<atom:link href="http://inspiredrobot.com/blog/category/actionscript-30/feed/" rel="self" type="application/rss+xml" />
	<link>http://inspiredrobot.com/blog</link>
	<description>Coding for the robotic soul</description>
	<lastBuildDate>Sun, 14 Nov 2010 22:49:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>MVC Pattern in AS3</title>
		<link>http://inspiredrobot.com/blog/2009/10/31/mvc-pattern-in-as3/</link>
		<comments>http://inspiredrobot.com/blog/2009/10/31/mvc-pattern-in-as3/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 13:26:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Actionscript 3.0]]></category>
		<category><![CDATA[Flash CS4]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://inspiredrobot.com/blog/?p=49</guid>
		<description><![CDATA[Just some random thoughts this morning, following a discussion with a colleague at work. Perhaps it gets overused, and sometimes abused, but I find the MVC pattern a rather useful way of dividing up code.  By using the pattern, I formalize what I would otherwise try to do anyway: separate my data from the graphical [...]]]></description>
			<content:encoded><![CDATA[<p>Just some random thoughts this morning, following a discussion with a colleague at work.</p>
<p>Perhaps it gets overused, and sometimes abused, but I find the MVC pattern a rather useful way of dividing up code.  By using the pattern, I formalize what I would otherwise try to do anyway: separate my data from the graphical display, and make it easy to switch different views for the same data.  And although with MVC you should be able to set up your data model so the actual data can take several forms, XML is so easy to parse with e4x that it&#8217;s really not worth the effort to create a separate class to act as a parser.   So now I think I will call the data &#8220;model&#8221; the XML format itself.  This does mean, however, that if data is actually stored in some other way, say in the database, a serializer will need to be created to generate this data model.  This way the View in MVC can just parse the data format directly.  The Controller&#8217;s role is usually limited to locating the xml file and instantiating the View, passing it the xml.</p>
<p>Or I could just wing it&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://inspiredrobot.com/blog/2009/10/31/mvc-pattern-in-as3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Crash Alert: flash10 wmode &#8220;transparent&#8221; can crash FF3 &amp; IE7</title>
		<link>http://inspiredrobot.com/blog/2009/03/05/transparent-wmode-crashes-browser-in-flash-10-with-3d-filters-and-simplebuttons/</link>
		<comments>http://inspiredrobot.com/blog/2009/03/05/transparent-wmode-crashes-browser-in-flash-10-with-3d-filters-and-simplebuttons/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 13:29:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Actionscript 3.0]]></category>
		<category><![CDATA[Flash CS4]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[SimpleButton]]></category>
		<category><![CDATA[wmode]]></category>

		<guid isPermaLink="false">http://inspiredrobot.com/blog/?p=27</guid>
		<description><![CDATA[Filters applied at runtime to a SimpleButton that has been moved in 3D will crash the browser if embedded into html with wmode tranparent.]]></description>
			<content:encoded><![CDATA[
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="c"
			class="flashmovie"
			width="102"
			height="106">
	<param name="movie" value="/labs/wmode_crash/cs4crashtest.swf" />
	<param name="quality" value="best" />
	<param name="salign" value="tl" />
	<param name="wmode" value="window" />
	<param name="bgcolor" value="#000000" />
	<param name="seamlesstabbing" value="true" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/labs/wmode_crash/cs4crashtest.swf"
			name="c"
			width="102"
			height="106">
		<param name="quality" value="best" />
		<param name="salign" value="tl" />
		<param name="wmode" value="window" />
		<param name="bgcolor" value="#000000" />
		<param name="seamlesstabbing" value="true" />
	<!--<![endif]-->
		<a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>I ran into a bug yesterday for flash 10 swf files that really had me scratching my head.  I narrowed the bug down to the following: filters applied at runtime to a SimpleButton that has been moved in 3D will crash the browser if embedded into html with wmode tranparent.  I guess it sounds really specific, but I think it&#8217;s pretty likely someone else will run into this soon if they haven&#8217;t already.   <a title="wmode transparent crashes browser" href="/downloads/wmode_crash.zip">Download the example</a>.</p>
<p>In the <a title="wmode transparent crashes browser" href="/downloads/wmode_crash.zip">example</a>, If you run cs4crashtest.html in firefox3 or IE7, and you move the mouse over the flash icon, cs4crashtest.html will crash (I haven&#8217;t tested other browsers).</p>
<p>The workaround I used for this example was to apply the filter to the over state of the SimpleButton class (btn.overState.filters). See cs4crashfix.html in the <a title="wmode transparent crashes browser" href="/downloads/wmode_crash.zip">example</a>.</p>
<p>Of course, if set wmode to something other than transparent, you won&#8217;t experience these issues.  You can also apply filters using the Flash CS4 IDE instead of using code, this seems to cause no problems.  Hope this helps someone avoid some debugging time.</p>
]]></content:encoded>
			<wfw:commentRss>http://inspiredrobot.com/blog/2009/03/05/transparent-wmode-crashes-browser-in-flash-10-with-3d-filters-and-simplebuttons/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

