[Papervision3D] 1.5.1 components and Interaction

pokypin dustin at curiousmedia.com
Thu Sep 11 13:10:03 PDT 2008


I am using the mxp for the 1.5.1 components. I have a normal Scene component
on the stage with the following code. Why don't I get a mouse over state on
a button inside "m"?


package {
	
	import flash.display.*;
	import flash.events.*;
	
	import org.papervision3d.materials.*;
	import org.papervision3d.objects.*;
	
	public class MainContentArea extends MovieClip {
		
		private var contentWidth:int = 375;
		private var contentHeight:int = 299;
		
		private var plane:Plane;
		private var material:InteractiveMovieMaterial;
		
		public function MainContentArea():void {
			initiateContent();			
		}
		
		public function initiateContent():void {
			
			scene3d.camera.focus = 200;
			scene3d.camera.z = -800;
			scene3d.camera.zoom = 5;			
			
			material = new InteractiveMovieMaterial(m, true);
			material.smooth = true;
			material.animated = true;
			
			plane = new Plane(material, contentWidth, contentHeight, 4, 4);
			
			scene3d.scene.addChild(plane);
			
			plane.rotationX = 20;
			plane.rotationY = 20;
		}
	}
}
-- 
View this message in context: http://www.nabble.com/1.5.1-components-and-Interaction-tp19443489p19443489.html
Sent from the Papervision3D mailing list archive at Nabble.com.




More information about the Papervision3D mailing list