问题
- Can I embed flash in XNA? how?
- 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