This worked - thanks - however - my sound is triggered on the timeline ( event - loop ) , is there a way i can control the sound position - i.e. restart the sound or skip to a certain position in the audio? Or maybe this is asking a little too much from timeline triggered sounds.

Many thanks...

On 14 Nov 2008, at 21:30, Kenneth Kawamoto wrote:

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

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

Reply via email to