Flash has always supported the full-screen (full screen) and in stand-alone player to the projector. This mode is still fully supported and has not changed. Instead Adobe has recently introduced the ability to directly activate the full screen movies displayed in the browser. We have introduced a new and simple ActionScript function that works with both players stand-alone player with the browser. ed <embed> . To make the fullscreen fuzionante must operate side HTML, adding a new parameter allowFullScreen in TAG <object> and <embed> . Everything else is left to the internal engine of Flash.
This new feature has still some restrictions that you must know, first of all use of the Flash Player version 9.0.28.0 or higher. Moreover, in summary:
- Browser must be installed on the version of the Player 9.0.28.0 or higher
- e
<embed>. The developer must add a new parameterallowFullScreentag in<object>and<embed>. This parameter is normally set tofalseand does not allow fullscreen. To enable full screen you must explicitly set it totrue. - A dialog box will be shown when entering fullscreen mode and tell you how to get out of that mode. This box will be visible for a few seconds, after which he will disappear by itself.
- The activation of the fullscreen ActionScript can only be in response to a click of the mouse or the push of a button, any other mode will be ignored in ActionScript 2.0 and trigger an exception
throwin ActionScript 3.0. - During the fullscreen mode you can not use the keyboard. The end user can not enter or edit text. The only answer is given to the keyboard shortcut used to exit fullscreen mode (pressing
ESC)
ActionScript
The code required to set the fullscreen is very simple and uses the object Stage discussed in this blog StageExt Class: resizable Flash movies :
1 |
Note: You may also write:
1 |
The two ways are equivalent, and permission from ActionScript is that the properties of an object as an array indexed keys. Use the key array eliminates the problems when compiling in previous versions of Flash.
HTML
The HTML code is disarming, just add the tag <object> :
1 | "allowFullScreen" value = "true" / > < param name = "allowFullScreen" value = "true" /> |
and tags <embed> attribute:
1 | allowFullScreen = "true" |
That is:
1 2 3 4 5 6 7 8 9 10 | "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" < object classid = "clsid: d27cdb6e-11cf-96b8-ae6d-444553540000" codebase = "# version = 9,0,18,0 http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" height = "400" id = "fullscreen" align = "middle" > width = "600" height = "400" id = "fullscreen" align = "middle"> "allowFullScreen" value = "true" / > < param name = "allowFullScreen" value = "true" /> "movie" value = "fullscreen.swf" / > < param name = "movie" value = "fullscreen.swf" /> "bgcolor" value = "#333333" / > < param name = "bgcolor" value = "# 333333" /> allowFullScreen = "true" bgcolor = "#333333" width = "600" height = "400" <Embed src = "fullscreen.swf" allowFullScreen = "true" bgcolor = "# 333333" width = "600" height = "400" align = "middle" type = "application/x-shockwave-flash" name = "fullscreen" align = "middle" type = "application / x-shockwave-flash" > pluginspage = "http://www.macromedia.com/go/getflashplayer" /> </ object > |










undolog  »Blog Archive » Fullscreen Flash on the browser ...
Flash has always supported the full-screen (full screen) and in stand-alone player to the projector. This mode is still fully supported and has not changed. Adobe has recently introduced instead of the possible ...
exisitra alguna form of harassing cuadro ESE eliminates those late accommodation on the map 2 segundos en que retirarse pienso devieorn Trabajar the aesthetics a little mas claro algunos I Diran esque but not common and not real money-lender and mensage sabra y como no responders
I gustaria saver eliminates este es posible cuadro