<?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>Web Development London UK &#187; papervision</title>
	<atom:link href="http://hsmoore.com/blog/tag/papervision/feed/" rel="self" type="application/rss+xml" />
	<link>http://hsmoore.com</link>
	<description>Web Development London UK</description>
	<lastBuildDate>Wed, 01 Feb 2012 12:10:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Papervision Event Listener Idea</title>
		<link>http://hsmoore.com/blog/papervision-event-listener-idea/</link>
		<comments>http://hsmoore.com/blog/papervision-event-listener-idea/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 10:12:11 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[3D Flash]]></category>
		<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[event listener]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[papervision]]></category>

		<guid isPermaLink="false">http://blog.andrewodendaal.com/?p=264</guid>
		<description><![CDATA[The problem: While working on a Papervision3D Flash Project I had a problem where a back button that sits above the 3d canvas and acts as a main navigational item was required to change Events according to where the site was in 3d space at the time. The solution: Everytime I&#8217;m about to add a...]]></description>
			<content:encoded><![CDATA[<p><strong>The problem:</strong><br />
While working on a <a class="zem_slink freebase/guid/9202a8c04000641f8000000000525ebb" title="3D Flash" rel="wikipedia" href="http://en.wikipedia.org/wiki/3D_Flash">Papervision3D</a> Flash Project I had a problem where a back button that sits above the 3d canvas and acts as a main navigational item was required to change Events according to where the site was in 3d space at the time.</p>
<p><strong>The solution:</strong><br />
Everytime I&#8217;m about to add a new EventListener to the back button movieclip I call the function &#8220;delBB()&#8221; and then add my event listener using addBB(with the event here).</p>
<p>It seems to work correctly and is a faster way of working.</p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;"><span class="kw2">var</span> currentBackListener = <span class="kw2">null</span>;<br />
<span class="kw2">function</span> addBB<span class="br0">&#40;</span>whatever<span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
back_mc.<span class="me1">addEventListener</span><span class="br0">&#40;</span>MouseEvent.<span class="me1">CLICK</span>,whatever<span class="br0">&#41;</span>;<br />
currentBackListener = whatever;<br />
<span class="br0">&#125;</span><br />
<span class="kw2">function</span> delBB<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
<span class="kw1">if</span> <span class="br0">&#40;</span>currentBackListener<span class="sy0">!</span>=<span class="kw2">null</span><span class="br0">&#41;</span> back_mc.<span class="me1">removeEventListener</span><span class="br0">&#40;</span>MouseEvent.<span class="me1">CLICK</span>,currentBackListener<span class="br0">&#41;</span>;<br />
currentBackListener = <span class="kw2">null</span>;<br />
<span class="br0">&#125;</span></div>
</div>
<p><strong>Usage:</strong></p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;">delBB<span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
addBB<span class="br0">&#40;</span>CLOSE_OBJECT_CLICK_MC<span class="br0">&#41;</span>;</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/papervision-event-listener-idea/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Papervision error 1046</title>
		<link>http://hsmoore.com/blog/papervision-error-1046/</link>
		<comments>http://hsmoore.com/blog/papervision-error-1046/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 10:51:32 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[papervision]]></category>

		<guid isPermaLink="false">http://blog.andrewodendaal.com/?p=95</guid>
		<description><![CDATA[Error: &#8220;1046: Type was not found or was not a compile-time constant: InteractiveScene3DEvent.&#8221; I got this this morning when I opened up a project I have been working on. I was using the Flash IDE to compile and FlashDevelop to code in as I am not the biggest fan of the Flash IDE for coding...]]></description>
			<content:encoded><![CDATA[<p>Error: &#8220;1046: Type was not found or was not a compile-time constant: InteractiveScene3DEvent.&#8221;</p>
<p>I got this this morning when I opened up a project I have been working on. I was using the Flash IDE to compile and FlashDevelop to code in as I am not the biggest fan of the Flash IDE for coding in&#8230;.. Who is? Right?</p>
<p>Anyways&#8230; I tried to publish my swf and I got loads of errors like the one above. So after looking into what was going on I discovered that half of my papervision classes were missing! How the heck that happened I have no idea, as I store them per project basis and not as one standard import.</p>
<p>So check to make sure that you are able to access the papervision classes from your FLA source file.</p>
<p>If you are not sure how to do this then take a look at, File-&gt;Publish Settings-&gt;Flash-&gt;Settings-&gt; and make sure that the Source Path list box is including the correct class directories.</p>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/papervision-error-1046/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

