开发者

Close fullscreen flash from JS/Jquery

I have a lightview window that needs to appear when an item in a fullscreen flash movie is clicked. SO i want to put into the lightview callback a bit of JS that will close the fullscreen flash movie. Is it possi开发者_运维问答ble to close a fullscreen flash movie in JS?


Basically you need make in SWF method, which checks fullscreen status.

JAVASCRIPT:

var FULLSCREEN = 1;

function check_fullscreen() {
  return FULLSCREEN;
}

function turn_off_fullscreen() {
    FULLSCREEN = 0;
}

FLASH:

if (!ExternalInterface.call("check_fullscreen"))
    //turn off fullscreen

If you wanna don't allow fullscreen all time, when use embed flash param (in html):

<param name="allowFullscreen" value="false">
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜