How to embed flash into XNA on windows mobile

北城余情 提交于 2020-01-13 05:32:40

问题


  1. Can I embed flash in XNA? how?
  2. Can I get data(flash game result) from the embedded flash?

Thanks.

http://en.wikipedia.org/wiki/Microsoft_XNA

http://www.xnadevelopment.com/tutorials.shtml

http://www.code-magazine.com/article.aspx?quickid=0709051&page=7


回答1:


1th question:

Its 100% possible to embed flash in XNA if person finds a SWFWiever for Windows Forms.I have written an article about xna-windows controls-wpf integration here:

XNA-Windows Controls-WPF Integration




回答2:


There is no way directly (especially not if you want to deploy your code to an Xbox 360). Workarounds would include using a Browser (with Flash installed) and render the Data to a Texture. It was discussed in this blog.

However I do not believe that this will result in a good performance. Other solution (but I do not know how they play with XNA) used by games like Crysis use Scaleform. But it's not free and you might to a lot of magic to get it working. Also, this won't work on an Xbox 360.

P.S. There is also gameswf. Same issues as with Scaleform, you would have to find a way to share your DirectX contexts.




回答3:


Possible answer to question 1



来源:https://stackoverflow.com/questions/2153243/how-to-embed-flash-into-xna-on-windows-mobile

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