加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Flash在网页中100%显示并且不变形

发布时间:2020-12-15 06:30:42 所属栏目:百科 来源:网络整理
导读:在网页代码里面加上 param name="SCALE" value="noscale" 在flash里面要100%显示的元件上加 onClipEvent (enterFrame) { ??? if (_width != Stage.width) ??? { ??????? _width = Stage.width; ??? } // end if ??? if (_height != Stage.height) ??? { ????

在网页代码里面加上 <param name="SCALE" value="noscale">

在flash里面要100%显示的元件上加

onClipEvent (enterFrame)
{
??? if (_width != Stage.width)
??? {
??????? _width = Stage.width;
??? } // end if
??? if (_height != Stage.height)
??? {
??????? _height = Stage.height;
??? } // end if
}

flash里面的背景设置-----在场景里面的背景元件坐标x=0 y=0 宽度和高度和flash一样...在背景元件的下一层级坐标 x= -(flash影片宽度/2)? y= -(flash影片高度/2)

比如说,一个400x300的flash,背景在场景里面的坐标是 0.0 在下一层级的坐标就是 -200,-150.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读