How To Make Flash Object Fullscreen In HTML?
how can I make a flashobject to display in fullscreen in HTML? (without having the flash source)
Solution 1:
You can't do this from outside of Flash. Fullscreen mode is triggered by setting the fullScreen property of stage:
stage.displayState = "fullScreen";
Without being able to do this you can't use the fullscreen player. One option for you might be to create a wrapper SWF that loads in your existing content, opens into fullscreen mode, then scales your existing content to the full screen size by reading flash.system.Capabilities::screenResolutionX
. Something like this:
//assume content SWF is already loaded and on the stage
function resize():void
{
stage.displayState = "fullScreen";
loadedSWF.x = 0;
loadedSWF.y = 0;
loadedSWF.width = flash.system.Capabilities.screenResolutionX;
loadedSWF.width = flash.system.Capabilities.screenResolutionY;
}
How well this works will depend on the existing scaleMode setting of the SWF that you will be loading in.
Solution 2:
Make the width and height of the embedded code 100%.
Post a Comment for "How To Make Flash Object Fullscreen In HTML?"