posts - 496,comments - 227,trackbacks - 0
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);



posted on 2010-04-03 23:39 SIMONE 阅读(720) 评论(0)  编辑  收藏 所属分类: flash

只有注册用户登录后才能发表评论。


网站导航: