Wow, this actually plays way better than I hoped! The sound (thus the animation) probably won't play unless you have wmp10. There are ways around that, but it seems that means going down to code, and maybe wav only, so that will have to come later. For syncing I cheated a little and added one second of padding to insure the mp3 was loaded. It seems there are ways to sync clocks for this, I was hoping it would be as simple as adding SlipBehavior="Slip" to the storyboard, but no such luck. Anyway it plays quite accurately on this machine as it is. The size is about 1.5MB vs 146k for flash, but that is uncompressed and with much better sound quality. Still it will always be large in xml, I guess baml may be an option at one point.
stevie.zip
The whole point of this converter is we are making some XBox games and we want to use animation in them. Specifically we want to use this animation, so I'm pretty happy to be at this point. Of course that is xaml and we need to go to xna, but that should be mostly a matter of transcribing it now. We've been totally stalled on XNA doing this flash game, but that is nearly complete, so I'm totally looking forward to getting back on it. The game where we left it is here, I think you need all the (free) xna stuff installed to try it though. We have animations for each level, and 4 or 5 levels.
Anyway, I do plan to clean up and robustify the converter code soon. I'll post it at least in beta form if you would like to give it a try. I still have to add movieclips (they are parsed and go to xaml, just need to make them run independently), bitmap fills, apply color transforms and a few other odds and ends, but it is pretty close. This converts up to Flash 8 files. I'm thinking of converting bytecode as well, that would be esp cool for xna as it would allow flash games to play on the xbox. I'm thinking it will be a bit easier going to C# from swf rather than the other way (like we did at xamlon), esp if going direct to IL. Not sure though, the devil is in the details with that stuff. At least IL is the superset of the two...
Sandy's work again of course! This was from a children's saftey training series, but the client ended up not wanting to go forward with them. Cripes eh?"
posted on Sunday, May 06, 2007 12:25 AM