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許可證的許可。隨時根據許可條款使用,修改和分配它。