开发者

Howto Embed , load .swf into Pygame?

开发者 https://www.devze.com 2022-12-13 09:20 出处:网络
How can I load a .swf(开发者_运维百科flash) file in Pygame?As far as I know, Pygame does not have a browser widget that supports playing flash. To get this working, you\'ll have to embed a window from

How can I load a .swf(开发者_运维百科flash) file in Pygame?


As far as I know, Pygame does not have a browser widget that supports playing flash. To get this working, you'll have to embed a window from a web browser that does (i.e. FireFox, IE, Safari, etc).

Alternatively, you can use Python's C/C++ interface integrate the GNU Gnash project (an open source flash player) into your program. Unfortunately Gnash only supports up to flash 9, and it may be difficult to make your own Gnash UI widget.


Take a look at Gnash, you might find this question relevant.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号