当要制作Flash整站时,经常需要让Flash充满页面。
点击查看效果
body, html{
overflow:hidden;
margin:0px;
width:100%;
height:100%;
}
实现这Flash充满页面,关键在于html代码。特别要注意的是flash嵌入时的width和height指定为100%。
当要制作Flash整站时,经常需要让Flash充满页面。
点击查看效果
body, html{
overflow:hidden;
margin:0px;
width:100%;
height:100%;
}
实现这Flash充满页面,关键在于html代码。特别要注意的是flash嵌入时的width和height指定为100%。
问题描述:
当flash中需要使用mousewheel事件,而flash所在的页面也有滚动条,那么这2个滚动就会产生冲突。
解决方案:
MouseWheelFixer.as类
结果演示:
示例代码:
package {
import as4game.fw.fixer.MouseWheelFixer;
import flash.display.Sprite;
/**
* @author as4game@gmail.com
*/
public class Test_MouseWheelFixer extends Sprite {
public function Test_MouseWheelFixer() {
[...]