Many people run into the “hand cursor” problem when starting with pv3d. Here’s a simple solution. The green plane is interactive and activates buttonMode on the viewport while the red plane does nothing: package { import flash.display.Sprite; import flash.events.Event; import org.papervision3d.cameras.FreeCamera3D; import org.papervision3d.events.InteractiveScene3DEvent; import org.papervision3d.materials.ColorMaterial; import org.papervision3d.objects.DisplayObject3D; import org.papervision3d.objects.primitives.Plane; import org.papervision3d.render.BasicRenderEngine; import org.papervision3d.scenes.Scene3D; import org.papervision3d.view.Viewport3D; [SWF(width="640", height="480", backgroundColor="#ffffff")] public class HandCursor extends Sprite { private var viewport:Viewport3D; private [...]

Subscribe to Planet Flash

Search

Tags

3d 3d Flash Actionscript actionscript 3 ActionScript 3.0 Adobe Adobe Air Adobe AIR (Apollo) Adobe Flash Adobe Flex AdobeMAX08 AIR AIR Adobe Integrated Runtime Announcements apollo as3 Asides awards BEA Beautiful Web Business Cairngorm ColdFusion Community Components Conferences design dev Development Events Examples Featured Flash Flash CS3 Flash experiments flash player Flex Flex 3 Flex Example FMS Fun Gallery General GeoWeb Google Jobs linux Marketing MAX MAX 2007 Misc News news & events Open Source Other Papervision3D Personal photos Photoshop Process Processing RIA Singularity Site News Stuff techmology Technology Thinking Loud Tips Uncategorized Video Whatever

Blogs

Buttons

Planetarium