[swfmill] Loading an mp3 embedded as sound

Don-Duong Quach geekrelief at gmail.com
Mon Jan 26 11:51:17 PST 2009


Hi,

I'm looking for advice on how I can get access to an mp3 I've embedded into
a swf with swfmill.

Here's my sound.xml file:

  1 <?xml version="1.0" ?>
  2 <movie framerate="10" height="300" width="400">
  3     <library>
  4         <sound id="Step" import="music/Tech_Step_Break.mp3"/>
  5     </library>
  6     <frame>
  7         <place id="Step"/>
  8     </frame>
  9 </movie>

I used this command to generate the swf: swfmill simple sound.xml step.swf

And I'm trying to load step.swf into my app dynamically with Loader.  When
the swf completes loading, I want to be able to access the Sound instance in
Actionscript 3 (flash 10) so I try to call:

e.target.applicationDomain.getDefinition("Step") as Class;

But I get an error that Variable Sound is not defined.  I don't know how to
get access to the sound / mp3.

I'm using mental's repo which has mp3/wav support.
http://github.com/mental/swfmill/tree/master

Thanks,
Don Q.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/swfmill_osflash.org/attachments/20090126/e1a24f90/attachment.html>


More information about the swfmill mailing list