In a project I have some wavs. They were small and were encoded properly to mp3 on publish.
Then I added a larger wav ( 64 seconds ) and Flash Crashed on publish.
I tested the same wav file on a normal AS3 document and it got encoded properly in the SWF. Then tested again the same Wav on a blank HTML 5 Canvas FLA and crashed again.
At the end I encoded this Wav into MP3 in a 3rd party software and imported it into Flash and everything is OK.
I tried ot import this wav file into flash since it's a loop and Wav files encoded in SWF documents produce gapless loops.