Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 Pygame 中加载 .swf(flash) 文件?
据我所知,Pygame 没有支持播放 flash 的浏览器小部件。要让这个工作,你必须从网页浏览器嵌入一个窗口(即 FireFox、IE、Safari 等)。
或者,您可以使用 Python 的 C/C++ 接口将GNU Gnash项目(一个开源 Flash 播放器)集成到您的程序中。不幸的是,Gnash 最多只支持 flash 9,可能很难制作自己的 Gnash UI 小部件。
看看Gnash,你可能会发现这个问题很相关。