I found a really hard to diagnose bug today with the Swf to Xaml converter, so I'm posting here in case it helps anyone in the future. The someone is usually me in the end, in fact I now remember having this bug in the past, guess I should have posted then too : ).

Anyway, instances in flash generally take a symbol and a transform Matrix (which sets X, Y, scale, rotation, skew etc). This combo will display the symbol on the stage in the appropriate way. The part I forgot was that that Matrix might be Matrix.Empty (all zeros). In this case the symbol is put on the stage using its actual defined points (only for Movieclips, long story : ). I was always putting the symbol at zero zero, and then using the instance matrix to place it, so in the case of the empty matrix it would generally end up at 0,0, or somewhere worse.

Man I feel liking I'm talking to my future self here, weird. Hey you idiot, you didn't make that same mistake three times did you! And what the hell are you writing yet another swf parser for!! Get a life already.

Errm. I updated the trial version of theConverted - Swf to Xaml Edition if anyone was having issues with movieclips behaving weirdly, that may be reason -- please try the new one : ).

http://theconverted.ca/trial/TheConvertedTrial.zip

posted on Wednesday, July 11, 2007 3:22 AM
Feedback
No comments posted yet.

Blog Stats

  • Posts - 121
  • Stories - 1
  • Comments - 1441
  • Trackbacks - 47

.Net Blogs

01101 Blogs

Flash Blogs

Graphics

People