Hi!

I'm trying to create a swf containing mp3s, but obviously something's wrong.
I'm using a 128Kbit mono mp3 (later I want to use stereo).

This is the xml for SwfMill compiling a swf called "Sound.swf":

<?xml version="1.0" encoding="iso-8859-1" ?>
<movie width="320" height="240" framerate="12">
 <background color="#ffffff"/>
<frame>
 <library>
   <sound id="myID" import="test.mp3"/>
 </library>
</frame>
</movie>

This is a SwfDump of the resulting swf "Sound.swf":

[HEADER]        File version: 7
[HEADER]        File is zlib compressed. Ratio: 95%
[HEADER]        File size: 24426 (Depacked)
[HEADER]        Frame rate: 12.000000
[HEADER]        Frame count: 1
[HEADER]        Movie width: 320.00
[HEADER]        Movie height: 240.00
[009]         3 SETBACKGROUNDCOLOR (ff/ff/ff)
[00e]     24376 DEFINESOUND defines id 0001 (MP3 44Khz 16Bit stereo)
[038]         9 EXPORTASSETS
               exports 0001 as "myID"
[001]         0 SHOWFRAME 1 (00:00:00,000)
[000]         0 END



This is what I'm trying to do in my  Flash application:

mcHolder.loadMovie('Sound.swf');
var snd:Sound = new Sound();

btnStart.onPress = function()
{
   snd.attachSound("myID");
   snd.start();
}

I get no sound and no error messages. Anybody having a clue?

Regards / Jonas Nyström
_______________________________________________
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org

Reply via email to