Flash在IE全屏时 使用Deeplinking修改网址会退出全屏的bug解决方案

Jack 撰写  

BUG描述:

IE浏览器下,Flash全屏时 一旦使用deeplinking修改网址参数,就会导致Flash退出全屏

解决方案:

在全屏时不再修改deeplinking, 而当退出全屏时,使用最后的deeplinking

可以侦听stage类的事件FullScreenEvent. FULL_SCREEN

在任何被添加到了舞台的DisplayObject对象内部,都可以这样写:

this.stage.addEventListener(FullScreenEvent.FULL_SCREEN, stage_fullScreenHandler);

//侦听全屏变化的事件

private function stage_fullScreenHandler(event:FullScreenEvent):void{

//event.fullScreen为false的时候,是退出全屏,true是进入全屏

if(!event.fullScreen){

//修改deeplinking

}


发表评论

你必须在 登录 后才能发表评论.