I've been googling this for a bit but haven't come across anything definitive. Is it possible (by which I also mean practical) to compile Flash s开发者_如何学编程wf apps using C#?
Actually SWF is open format, so yes you can but it's not easy.
I've done this on a few projects - mainly because at the time Flash 5 was quite limiting (you couldn't dynamically load in an image).
These days there isn't much need to output SWF in code and the automation tools also make other solutions more appealing. It is certainly possible, but to have to write it byte-by-byte. Although these days there are probably a few C# libraries kicking around for it.
Practical? No.
I have no definitive reference to point to but the answer is no.
I believe you can use the Flash Player External API to create Flash documents in C#. I don't know what the capabilities are exactly, but it's worth taking a look:
Here's an article that explains how to use the API:
http://www.codeproject.com/KB/audio-video/flashexternalapi.aspx
And here's a component that leverages the API:
http://www.aspose.com/categories/.net-components/aspose.flash-for-.net/default.aspx
精彩评论