PDA

View Full Version : stop all sounds in Flash


stonyx
08-13-2006, 07:00 PM
hi all i think my problem is simple
i'm loading some data from a XML file to a datagrid
XML
<catalog>
<book>
<name>some name</name>
<desc>description</desc>
</book>
</catalog>

and then i have a TextArea component
<mx:TextArea id="areaDeTexto" width="560" height="414"
textAlign="justify" wordWrap="true" editable="false"
htmlText="{datagrid.selectedItem.desc}" x="3" y="3" change="xlc.refresh()"/>

sometimes i use <img src="someswffile.swf"/> in the <desc> tag
to load movies or something, the problem is thatwhen i select another tag in the datagrid the movie sound keeps playing
what i want is to stop all sounds or movies playing when select something on the datagrid


Ayuda por favor!!!!:D

Tink
08-13-2006, 08:27 PM
tryflash.media.SoundMixer.stopAll()

stonyx
08-15-2006, 04:49 PM
tryflash.media.SoundMixer.stopAll()

than you""" ;)