ruffle example
1.0.0
该存储库提供了一个示例/演示,介绍了如何在您自己的网站上使用荷叶边仿真闪存内容。 Ruffle是一种开源闪存播放器仿真器,可让您继续在现代浏览器中运行Flash内容。
视频说明:https://www.youtube.com/watch?v=tjxmgnxex24&t=81s
堆栈溢出问题:https://stackoverflow.com/questions/65465492/how-to-to-embed-ruffle-flash-plash-player-emulator-emulator-into-html-file/65693128#65693128
在开始之前,请确保您有以下内容:
要在您自己的网站上使用荷叶边,请执行以下步骤:
git clone https://github.com/maddox05/ruffle-example.git <!DOCTYPE html >
< html lang =" en " >
< head >
< meta charset =" UTF-8 " >
< meta http-equiv =" X-UA-Compatible " content =" IE=edge " >
< meta name =" viewport " content =" width=device-width, initial-scale=1.0 " >
< meta name =" title " content =" Ruffle Example " >
< meta http-equiv =" Content-Type " content =" text/html; charset=utf-8 " >
< meta name =" language " content =" English " >
< title > Ruffle Example </ title >
< script src =" main.js " > </ script >
< noscript > Your browser doesn't have JavaScript enabled. Please enable JavaScript or switch to a browser that
supports it. </ noscript >
</ head >
< body >
< div id =' ruffle ' class =" gameloc " > </ div >
< script src =' https://maddox05.github.io/ruffle-example/ruffle/index.js ' > </ script > <!-- Theses files should be local -->
< script id = " gabe " > swfobject . embedSWF ( "https://maddox05.github.io/ruffle-example/1on1soccer.swf" , 'ruffle' , 800 , 600 ) ; </ script > <!-- Theses files should be local -->
</ body >
</ html >可以随意修改HTML,CSS和JavaScript代码以满足您的需求。您可以更改布局,添加更多闪存内容,或在网站的不同部分集成荷叶边。
Ruffle旨在在缺乏内置闪光支持的现代浏览器中工作,例如Google Chrome,Mozilla Firefox,Microsoft Edge和Safari。它与广泛的闪存内容兼容,包括动画,游戏和交互式应用程序。
有关荷叶边及其功能的更多信息,请参阅官方的荷叶边GitHub存储库。
此示例网站已获得MIT许可证的许可。随时根据许可条款使用,修改和分配它。