Shouldn't it be more like:

var stfm:SoundTransform = theMC.soundTransform;
stfm.volume = 0;
theMC.soundTransform = stfm;

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Karim Beyrouti wrote:
Hi ! Another simple AS3 question - well at least I hope so.
I am trying to set the volume of a sound that has been embedded in the
'root' timeline of a loaded movieclip (as3). So I tried:

Themc.soundTransform.volume = 0;        


But nothing happened - no mute or anything.... in AS2 we used to be able to
do:
s:Sound = new Sound( themc ).
s.volume = 0;

but this does not work in AS3...

It's probably something simple but I am really scratching my head with this
one. Also, it's a little odd, but there is no chapter on "Sound" in Colin
Mook's Essential ActionScript 3.0 book...

Thanks


Karim

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to