Re: [Flashcoders] Controlling Sound in the timeline - AS3
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
Re: [Flashcoders] Controlling Sound in the timeline - AS3
I don't think so. If the sound was Stream you could control the sound's playtime by sending the playhead to the desired frame. Kenneth Kawamoto http://www.materiaprima.co.uk/ karim beyrouti wrote: 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] Controlling Sound in the timeline - AS3
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
Re: [Flashcoders] Controlling Sound in the timeline - AS3
Hello :) Can you create a little script to show your loader in action ? You target the loader or this content reference ? var loader:Loader = new Loader() ; loader.load(mySWF.swf) ; ... when your swf is loading you can target the loader.content reference and not the loader container. EKA+ :) 2008/11/14 Karim Beyrouti [EMAIL PROTECTED] 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
Re: [Flashcoders] Controlling Sound in the timeline - AS3
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