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">
精彩评论