开发者

Close fullscreen flash from JS/Jquery

开发者 https://www.devze.com 2023-03-14 10:00 出处:网络
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.

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

精彩评论

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