怎样用AS3.0代码来让Flash Player进入全屏模式?怎样用AS3.0代码来让Flash Player退出全屏模式?
怎样用AS3.0代码来让FlashPlayer进入全屏模式?怎样用AS3.0代码来让FlashPlayer退出全屏模式?怎样用AS3.0代码来让FlashPlayer关闭...
怎样用AS3.0代码来让Flash Player进入全屏模式?怎样用AS3.0代码来让Flash Player退出全屏模式?怎样用AS3.0代码来让Flash Player关闭?求AS3.0代码!!!!
展开
3个回答
展开全部
package {
import flash.display.MovieClip;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.display.Stage;
import flash.display.StageDisplayState;
public class Fulltxttest extends MovieClip{
public function Fulltxttest()
{
this.bnt1.addEventListener( MouseEvent.CLICK, btnClick);
}
protected function btnClick( evt:MouseEvent):void
{
switch(stage.displayState)
{
case "normal":
stage.displayState = "fullScreen";
break;
case "fullScreen":
stage.displayState = "normal";
break;
default:
stage.displayState = "normal";
break;
}
}
}
}
import flash.display.MovieClip;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.display.Stage;
import flash.display.StageDisplayState;
public class Fulltxttest extends MovieClip{
public function Fulltxttest()
{
this.bnt1.addEventListener( MouseEvent.CLICK, btnClick);
}
protected function btnClick( evt:MouseEvent):void
{
switch(stage.displayState)
{
case "normal":
stage.displayState = "fullScreen";
break;
case "fullScreen":
stage.displayState = "normal";
break;
default:
stage.displayState = "normal";
break;
}
}
}
}
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
fscommand("fullscreen","true");//全屏
fscommand("fullscreen","false");//退出全屏
fscommand("quit");//关闭
fscommand("fullscreen","false");//退出全屏
fscommand("quit");//关闭
追问
用AS3.0代码,你这是AS2.0代码。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
var scalingRect:Rectangle = new Rectangle(0,0,Capabilities.screenResolutionX,Capabilities.screenResolutionY);
stage.fullScreenSourceRect = scalingRect;
stage.displayState = StageDisplayState.FULL_SCREEN;
stage.fullScreenSourceRect = scalingRect;
stage.displayState = StageDisplayState.FULL_SCREEN;
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询