>  hi..hw to control volume using Hslider...explain with som examples...

Actionscript? or mxml?

If it's in actionscript.
[code]
....
_volumeSlider  = new HSlider();
_volumeSlider.minimum = 0;
_volumeSlider.maximum = 100;
_volumeSlider.snapInterval = 5;
_volumeSlider.liveDragging = true;
_volumeSlider.addEventListener( SliderEvent.CHANGE, onSoundVolumeChange );
[/code]

and for the onSoundVolumeChange method
[code]
var volumen:Number = _volumeSlider.value * 0.01;

var soundTransform:SoundTransform = _stream.soundTransform;
soundTransform.volume = _soundVolume;
[/code]

Regards,
Edward Yakop

Reply via email to