Embed .swf in webpage and make it fullscreen

人走茶凉 提交于 2019-12-08 04:00:22

问题


Is there a way to embed a .swf file in a webpage and provide a way to make it fullscreen? I'm creating these files with Adobe Captivate, which doesn't seem to provide a way to publish in other usable formats (.avi files are too big, and no .flv is available, to which there seem to have some players around that allow fullscreen).

If there's a way to convert .swf to some other "embedable" format, please let me know.


回答1:


Why not make a link to the swf in question without a HTML file embedding it. This way the swl will fill the whole browser screen.




回答2:


You can create full screen swfs easily with html and javascript (that's the only way).

See Creating Full Screen Flex Applications.

Basically, you just add a parameter to the embed or object tag: allowScriptAccess:true. And the only thing you need in your swf other than your video is to set stage.displayState = StageDisplayState.FULL_SCREEN;. Not sure if you can do that without writing any actionscript.




回答3:


There is a fullscreen widget for Captivate here:
http://www.m-gd.com/en/playbar-fullscreen-captivate-widget/
It inserts a button just as in YouTube, so that you can toggle to fullscreen.
In addition there is a virtual keyboard, because you cannot enter text into text input fields.



来源:https://stackoverflow.com/questions/2272554/embed-swf-in-webpage-and-make-it-fullscreen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!