把video当material
(点击图片打开,自动播放,注意先关小声音)
papervision3d 出来有一段时间了,看 osflash 中的视频介绍,原来作者是在女朋友的鼓励下开源的。
另外测试一下语法高亮。
public function Video3D():void
{
stage.frameRate = 60;
stage.quality = "MEDIUM";
stage.scaleMode = "noScale";
stage.align = StageAlign.TOP_LEFT;
this.addEventListener(Event.ENTER_FRAME, loop3D);
this.stage.addEventListener(Event.RESIZE, onStageResize);
label=new TextField();
label.autoSize=TextFieldAutoSize.LEFT;
addChild(label);
label.x=this.stage.stageWidth/2-100;
label.y=this.stage.stageHeight-30;
init3D();
connection=new NetConnection();
connection.addEventListener(
NetStatusEvent.NET_STATUS,netStatusHandler);
connection.addEventListener(
SecurityErrorEvent.SECURITY_ERROR,securityErrorHandler);
connection.connect(null);
}
Labels: flash, papervision3d
0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home