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 >
Wrap
Text File
|
2007-07-19
|
993b
|
31 lines
package org.papervision3d.materials
{
import flash.media.Video;
import flash.net.NetStream;
import org.papervision3d.objects.DisplayObject3D;
import org.papervision3d.core.geom.Face3D;
import flash.display.Graphics;
import org.papervision3d.core.geom.Vertex2D;
import flash.geom.Matrix;
public class InteractiveVideoStreamMaterial extends VideoStreamMaterial
{
public function InteractiveVideoStreamMaterial(video:Video=null, stream:NetStream=null, initObject:Object=null)
{
super(video, stream, initObject);
}
/**
* drawFace3D
*/
override public function drawFace3D(instance:DisplayObject3D, face3D:Face3D, graphics:Graphics, v0:Vertex2D, v1:Vertex2D, v2:Vertex2D):int
{
var result:int = super.drawFace3D(instance, face3D, graphics, v0, v1,v2);
if(instance.interactiveSceneManager != null && result) instance.interactiveSceneManager.drawFace(instance,v0.x, v1.x, v2.x, v0.y, v1.y, v2.y);
return result;
}
}
}