How can I change volume of sound in my app I used next code <?xml version="1.0" encoding="utf-8"?>
<Script> <![CDATA[ import flash.media.*; [Embed(source="sound/music.mp3")] [Bindable] public var sndCls:Class; public var snd:Sound = new sndCls() as Sound; public var sndChannel:SoundChannel; private functioninitApp():void{ sndChannel=snd.play(); } public function changeVol():void{ sndChannel.soundTransform.volume = 0; } ]]> </Script> <Button label="Mute" click="changeVol()"/> </Application> But this code don't work. Ask me, what's problem? Thanks ____________________________________________________________________________________ Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/