flash控制Flashpaper,并全屏幕播放

来源:互联网 发布:伍斯特理工学院 知乎 编辑:程序博客网 时间:2024/04/30 01:52
 

Stage.align = "TL";
Stage.scaleMode = "noScale";
function hideBrand () {
    if (paper.gMainView.m_numPagesLoaded) {
        paper.toolbar_mc.brandClip_mc.swapDepths(1000);
        paper.toolbar_mc.brandClip_mc.removeMovieClip();
   paper._x=0;
   paper_y=0;
   paper.setSize (Stage.width, Stage.height);
   clearInterval (hideBrandInterval);
    }
}
createEmptyMovieClip ("paper", 1);
paper.loadMovie ("hdywsc.swf");
   //禁止内容缩放
fullscreen = new Object();//创建类
fullscreen.onResize = function() {//swf大小改变时触发
   paper._x=0;
   paper_y=0;

paper.setSize (Stage.width, Stage.height);
//顶和左对齐
//paper._x = Stage.width-300;//根据Stage.width和Stage.height获得的舞台的宽和高来调整显示
//paper._x=System.capabilities.screenResolutionX;
//paper_y=System.capabilities.screenResolutionY;
};
Stage.addListener(fullscreen);
hideBrandInterval = setInterval (hideBrand, 1);


原创粉丝点击