# Need help. controlling the sound of multi-media application

**URL:** <https://forum.kirupa.com/t/need-help-controlling-the-sound-of-multi-media-application/242899>\
**Category:** Uncategorized\
**Created:** [October 31, 2007, 3:04pm UTC](https://forum.kirupa.com/t/need-help-controlling-the-sound-of-multi-media-application/242899 "2007-10-31T15:04:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![juls](https://avatars.discourse-cdn.com/v4/letter/j/ecc23a/32.png) [@juls](https://forum.kirupa.com/u/juls)\
**Post date:** [October 31, 2007, 3:04pm UTC](https://forum.kirupa.com/t/need-help-controlling-the-sound-of-multi-media-application/242899/1 "2007-10-31T15:04:55Z")

</div>

Hi,  
[COLOR=black][FONT=Arial]I desperately need help!!![/FONT][/COLOR]  
[COLOR=black][FONT=Arial]I’m building an application that contains different types of media, such as audio, flash movie clips and video.[/FONT][/COLOR]  
[COLOR=black][FONT=Arial]My problem is that I need to be able to control the volume sound of each of this medias. I think that I’m or duplicating the sound objects or/and using 2 different techniques:[/FONT][/COLOR]  
[COLOR=black][FONT=Arial]For audio and flash movie clip I defined the sound as:[/FONT][/COLOR]  
[COLOR=black][FONT=Arial]mySound = new Sound();[/FONT][/COLOR]  
[COLOR=black][FONT=Arial]mySound.loadSound(audioPath+audioFile, true);[/FONT][/COLOR]  
[COLOR=black][FONT=Arial]mySound.setVolume(currentVolume);[/FONT][/COLOR]  
[COLOR=black][FONT=Arial]For video, the definition is different:[/FONT][/COLOR]  
[COLOR=black][FONT=Arial]var mySound:Sound = new Sound(vSound);[/FONT][/COLOR]  
[COLOR=black][FONT=Arial]mySound.setVolume(currentVolume);[/FONT][/COLOR]  
[COLOR=black][FONT=Arial]The problem stats when I switch between those 2 different types (for example, at the beginning I’m controlling the volume of an audio, when of a video and finally of audio or movie clip. Messing up between those two is not the smartest thing I have ever done).[/FONT][/COLOR]  
[COLOR=black][FONT=Arial]Can somebody, PLEASE, help me?[/FONT][/COLOR]  
[COLOR=black][FONT=Arial]Waiting for a reply,[/FONT][/COLOR]  
[COLOR=black][FONT=Arial]Juls[/FONT][/COLOR]
