<?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: Box3D Class for Papervision3D</title>
	<atom:link href="http://www.reynaldocolumna.com/blog/archives/box3d-class-for-papervision3d/feed" rel="self" type="application/rss+xml" />
	<link>http://www.reynaldocolumna.com/blog/archives/box3d-class-for-papervision3d</link>
	<description>Just another flash blog... Or is it?</description>
	<pubDate>Tue, 06 Jan 2009 03:40:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: adam</title>
		<link>http://www.reynaldocolumna.com/blog/archives/box3d-class-for-papervision3d#comment-7066</link>
		<dc:creator>adam</dc:creator>
		<pubDate>Tue, 07 Oct 2008 20:28:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.reynaldocolumna.com/blog/archives/box3d-class-for-papervision3d#comment-7066</guid>
		<description>i guess some code might help...

//in my papervision scene...

private function makeBoxes():void {
	var frontFace = new FrontFace();

	var fMat = new MovieMaterial(frontFace, true, true);

	var mList:MaterialsList = new MaterialsList();
	mList.addMaterial(fMat, 'front');
	mList.addMaterial(fMat, 'bottom');
	mList.addMaterial(fMat, 'left');
	mList.addMaterial(fMat, 'back');
	mList.addMaterial(fMat, 'top');
	mList.addMaterial(fMat, 'right');

	outerBox = new Box3D(mList, cubeW, cubeH, cubeW);
	outerBox.interactive = true;
	outerBox.y = yH;
			
	innerBox = new Box3D(mList, cubeW * .8, cubeH * .8, cubeW * .8);
	innerBox.interactive = true;
	innerBox.y = yH;
}

//in the Face Class...

package {
	
	import caurina.transitions.*;
	import flash.display.*;
	import flash.events.*;
	
	public class Face extends MovieClip {
		
		private const TRANS_TIME:Number = .5;
		
		public function Face() {
			init();
		}
		
		private function init():void {
			addEventListener(MouseEvent.ROLL_OVER, RollOver);
			addEventListener(MouseEvent.ROLL_OUT, RollOut);
		}
		
		private function RollOver(e:MouseEvent):void {
			Tweener.addTween(this.icon,{alpha:1, time:TRANS_TIME, transition:"linear"});
		}
		
		private function RollOut(e:MouseEvent):void {
			Tweener.addTween(this.icon,{alpha:.5, time:TRANS_TIME, transition:"linear"});
		}
	}
}

FrontFace is a linked movieclip with Face as the baseclass...

Any help is greatly appreciated</description>
		<content:encoded><![CDATA[<p>i guess some code might help&#8230;</p>
<p>//in my papervision scene&#8230;</p>
<p>private function makeBoxes():void {<br />
	var frontFace = new FrontFace();</p>
<p>	var fMat = new MovieMaterial(frontFace, true, true);</p>
<p>	var mList:MaterialsList = new MaterialsList();<br />
	mList.addMaterial(fMat, &#8216;front&#8217;);<br />
	mList.addMaterial(fMat, &#8216;bottom&#8217;);<br />
	mList.addMaterial(fMat, &#8216;left&#8217;);<br />
	mList.addMaterial(fMat, &#8216;back&#8217;);<br />
	mList.addMaterial(fMat, &#8216;top&#8217;);<br />
	mList.addMaterial(fMat, &#8216;right&#8217;);</p>
<p>	outerBox = new Box3D(mList, cubeW, cubeH, cubeW);<br />
	outerBox.interactive = true;<br />
	outerBox.y = yH;</p>
<p>	innerBox = new Box3D(mList, cubeW * .8, cubeH * .8, cubeW * .8);<br />
	innerBox.interactive = true;<br />
	innerBox.y = yH;<br />
}</p>
<p>//in the Face Class&#8230;</p>
<p>package {</p>
<p>	import caurina.transitions.*;<br />
	import flash.display.*;<br />
	import flash.events.*;</p>
<p>	public class Face extends MovieClip {</p>
<p>		private const TRANS_TIME:Number = .5;</p>
<p>		public function Face() {<br />
			init();<br />
		}</p>
<p>		private function init():void {<br />
			addEventListener(MouseEvent.ROLL_OVER, RollOver);<br />
			addEventListener(MouseEvent.ROLL_OUT, RollOut);<br />
		}</p>
<p>		private function RollOver(e:MouseEvent):void {<br />
			Tweener.addTween(this.icon,{alpha:1, time:TRANS_TIME, transition:&#8221;linear&#8221;});<br />
		}</p>
<p>		private function RollOut(e:MouseEvent):void {<br />
			Tweener.addTween(this.icon,{alpha:.5, time:TRANS_TIME, transition:&#8221;linear&#8221;});<br />
		}<br />
	}<br />
}</p>
<p>FrontFace is a linked movieclip with Face as the baseclass&#8230;</p>
<p>Any help is greatly appreciated</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adam</title>
		<link>http://www.reynaldocolumna.com/blog/archives/box3d-class-for-papervision3d#comment-7065</link>
		<dc:creator>adam</dc:creator>
		<pubDate>Tue, 07 Oct 2008 20:25:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.reynaldocolumna.com/blog/archives/box3d-class-for-papervision3d#comment-7065</guid>
		<description>Hey great class...i was wondering if you knew how I can make it so that the MovieMaterials that I'm using as the faces of the planes can contain RollOver/Out Events...i've written a baseclass for "Face" where the MouseEvent written in the class but when these are arranged on the face of the plane, the Event isn't triggered...any ideas</description>
		<content:encoded><![CDATA[<p>Hey great class&#8230;i was wondering if you knew how I can make it so that the MovieMaterials that I&#8217;m using as the faces of the planes can contain RollOver/Out Events&#8230;i&#8217;ve written a baseclass for &#8220;Face&#8221; where the MouseEvent written in the class but when these are arranged on the face of the plane, the Event isn&#8217;t triggered&#8230;any ideas</p>
]]></content:encoded>
	</item>
</channel>
</rss>
