Mr Pie
Mr Pie

Reputation: 327

Playing Flash swf files in XNA

Is this possible? It would be great..

I've tried:

http://fci-h.blogspot.kr/2007/06/how-to-play-flash-swf-inside-c.html

which gives me a attempted to read protected memory error

and

http://blog.debreuil.com/?p=35

which I just can't work out how to use - I just want the code to play a .swf file I've made already in my XNA game.

I would just love to be able to do cutscenes or live backgrounds in this way, especially if they can be streamed from file instead of preloaded.

Thanks a lot for any help!

Upvotes: 0

Views: 591

Answers (1)

mcmonkey4eva
mcmonkey4eva

Reputation: 1377

Sorry, but this is not possible without extreme hard work that's just not going to be within your reach. (Or some painfully awkward method, like embedding a Webpage below your game)

On the bright side - there's pretty much no need for .swf embedding. Anything flash can do, XNA can do better!

Use animated images or videos for live backgrounds / cutscenes - or program them yourself in XNA using manipulation of static images - if you need help with that, post a new question asking for help with some specific thing you need done.

Also, if you want, you can ask for help converting Flash Actionscript to its C#/XNA equivalent - it can be done without too much work by anyone with a little experience in both languages.

Upvotes: 1

Related Questions