<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Why not just use the Sound.loadSound() method, which can load an mp3
directly?<br>
<br>
-alex<br>
<br>
Don-Duong Quach wrote:
<blockquote
cite="mid:b4246a460901261311q4cb3e5dbq6d896ae78540a617@mail.gmail.com"
type="cite">I tried replacing the sound tag with clip, per a post by
Robin Palotai, I found on the haxe list. But as I suspected there's no
class definition in the swf. At least SWFExplorer doesn't show
anything, <a moz-do-not-send="true"
href="http://www.bytearray.org/?p=175">http://www.bytearray.org/?p=175</a>
<br>
<br>
So I'm stumped as to how to access the mp3 in the loaded swf.<br>
<br>
<br>
<div class="gmail_quote">On Mon, Jan 26, 2009 at 11:51 AM, Don-Duong
Quach <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:geekrelief@gmail.com">geekrelief@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
I'm looking for advice on how I can get access to an mp3 I've embedded
into a swf with swfmill.<br>
<br>
Here's my sound.xml file:<br>
<br>
1 <?xml version="1.0" ?><br>
2 <movie framerate="10" height="300" width="400"><br>
3 <library><br>
4 <sound id="Step" import="music/Tech_Step_Break.mp3"/><br>
5 </library><br>
6 <frame><br>
7 <place id="Step"/><br>
8 </frame><br>
9 </movie><br>
<br>
I used this command to generate the swf: swfmill simple sound.xml
step.swf<br>
<br>
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:<br>
<br>
e.target.applicationDomain.getDefinition("Step") as Class;<br>
<br>
But I get an error that Variable Sound is not defined. I don't know
how to get access to the sound / mp3.<br>
<br>
I'm using mental's repo which has mp3/wav support. <a
moz-do-not-send="true"
href="http://github.com/mental/swfmill/tree/master" target="_blank">http://github.com/mental/swfmill/tree/master</a>
<br>
<br>
Thanks,<br>
Don Q.<br>
</blockquote>
</div>
<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
swfmill mailing list
<a class="moz-txt-link-abbreviated" href="mailto:swfmill@osflash.org">swfmill@osflash.org</a>
<a class="moz-txt-link-freetext" href="http://osflash.org/mailman/listinfo/swfmill_osflash.org">http://osflash.org/mailman/listinfo/swfmill_osflash.org</a>
</pre>
</blockquote>
</body>
</html>