flash控制Flashpaper,并全屏幕播放

flash控制Flashpaper,并全屏幕播放
http://hi.baidu.com/gacmotor/blog/item/57577fd064814c339a502708.html

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);



你可能感兴趣的:(flash控制Flashpaper,并全屏幕播放)