Reputation: 1354
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?
Upvotes: 5
Views: 1172
Reputation: 7793
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">
Upvotes: 2