开发者

Flash stage full screen mode, movieclip full screen mode?

i am wondering from this code, it makes the开发者_如何转开发 stage full screen, does it also makes the content of my movieclips scaled to full screen? i have tried this code and it does not seem to do that, how can i make my content to scale to fill a stage's full screen? i have a Movieclip containing a background with a class to make special effects on the background, i am having trouble making the background be "fullscreened" nicely with the stage.

stage.displayState=StageDisplayState.FULL_SCREEN;


if you setup your swf using stage.scaleMode = StageScaleMode.NO_SCALE, you should use a RESIZE eventlistener on the stage to achieve the resizing of the content:

stage.addEventListener(Event.RESIZE, onStageResize);

private function onStageResize(event:Event):void
{
  // resize your content with the new stage proprotions
  myContent.setSize(stage.stageWidth, stage.stageHeight);
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜