Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 possible to close a fullscreen flash movie in JS?

like image 750
BillyMedia Avatar asked Nov 04 '22 19:11

BillyMedia


1 Answers

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">
like image 78
neworld Avatar answered Nov 11 '22 02:11

neworld