home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Templates / Flash / flashmo_101_3d_carousel / org / papervision3d / materials / InteractiveVideoStreamMaterial.as < prev    next >
Text File  |  2007-07-19  |  993b  |  31 lines

  1. package org.papervision3d.materials
  2. {
  3.     import flash.media.Video;
  4.     import flash.net.NetStream;
  5.     
  6.     import org.papervision3d.objects.DisplayObject3D;
  7.     import org.papervision3d.core.geom.Face3D;
  8.     import flash.display.Graphics;
  9.     import org.papervision3d.core.geom.Vertex2D;
  10.     import flash.geom.Matrix;
  11.     
  12.  
  13.     public class InteractiveVideoStreamMaterial extends VideoStreamMaterial
  14.     {
  15.         public function InteractiveVideoStreamMaterial(video:Video=null, stream:NetStream=null, initObject:Object=null)
  16.         {
  17.             super(video, stream, initObject);
  18.         }
  19.         
  20.         /**
  21.          *  drawFace3D
  22.          */
  23.         override public function drawFace3D(instance:DisplayObject3D, face3D:Face3D, graphics:Graphics, v0:Vertex2D, v1:Vertex2D, v2:Vertex2D):int
  24.         {
  25.             var result:int = super.drawFace3D(instance, face3D, graphics, v0, v1,v2);
  26.             if(instance.interactiveSceneManager != null && result) instance.interactiveSceneManager.drawFace(instance,v0.x, v1.x, v2.x, v0.y, v1.y, v2.y);
  27.             return result;
  28.         }
  29.         
  30.     }
  31. }