3、ion3d.objects.primitives.Plane; import org.papervision3d.materials.MovieMaterial; import org.papervision3d.events.InteractiveScene3DEvent; public class papervision extends Sprite { // this is the movieclip y_card:card = neera:Camera3D = neera3D(); public var renderer:BasicRenderEngin
4、e = nee to use Movie Materials... ovieclip as a material public var front_material:MovieMaterial; public var back_material:MovieMaterial; public var front_plane:Plane; public var back_plane:Plane; public var rotation_speed=0; public var steps=0; public function papervision() {
5、 // going to frame 2 my_card.gotoAndStop(2); // assigning the 2nd frame to front_material material front_material=ney_card); // going to frame 1... my_card.gotoAndStop(1); // and assign the 1st frame as material of the back_material material back_material=ney_card); fro
7、e.addEventListener(InteractiveScene3DEvent.OBJECT_PRESS,on_plane_clicked); front_plane.addEventListener(InteractiveScene3DEvent.OBJECT_PRESS,on_plane_clicked); addEventListener(Event.ENTER_FRAME, render); } public function render(e:Event) { if (rotation_speed) { steps++;