Creating a Volume Control Bar for multiple audio files

I'm fairly new to Flash and am developing a project with a
series of frames that contain unique movie clips. Each of these
frames are accessible through a chapter based menu as well as being
viewable straight through as a regular movie. I've just added the
audio for each "chapter" / frame that are all unique from one
another. I'm having a problem with creating a volume control bar
that will affect all audio throughout all frames from the single
control bar on the general skin/interface that these chapters work
out of. (Using Flash 8)
I developed a sliding control bar, which works but does not
affect the volume in any way. Is there something wrong with the
following coding that I'm using? (The control bar is made up of a
button nested in a movie clip and the action is being applied to
the mc. The bar/line to follow is 60px long and the control is to
move horizontally while the increase corresponds to increase in
volume. The original code was for a 100px line from a macromedia
tutorial that I adjusted to be 60px) Any advice on best practice
for creating a volume control bar would be greatly appreciated! (I
currently have all of my corresponding audio files on separate
layers, should I be placing these within a mc rather than just
having them on the main timeline?) Thank You!!!!

Answering my own question.....
Each individual swf has the code...
var my_sound:Sound = new Sound();
my_sound.loadSound("someSound.mp3", true);
my_sound.setVolume(50);
Code on Shell/main slide....
//SOUND OBJECT
var soundtrack:Sound = new Sound;
soundtrack.setVolume(50);
//END OF SOUND OBJECT
//GLOBAL VOLUME CONTROL
var nVolCheck:Number;
volSlider.volBall.onPress = function():Void {
this.startDrag (false, 0, 0, 75, 0);
nVolCheck = setInterval(updateVolume, 150);
volSlider.volBall.onRelease = function():Void {
this.stopDrag ();
clearInterval(nVolCheck);
function updateVolume():Void {
var vol:Number = (volSlider.volBall._x)*2;
soundtrack.setVolume(vol);
//END OF GLOBAL VOLUME CONTROL
my bar is 75 pixels in width and the volume is being
increased by 1.5 at its maximum.

Similar Messages

  • Viewing total duration for multiple audio files

    I need to be able to view 'total duration', when selecting multiple audio files, e.g. 10 audio files, total duration 42.03. I can't find a way to do this and so far, all I've been able to do is view individual audio file durations, then total them manually (which takes far too long, for what I need to do). I've previously been a Windows user, and this is instantly viewable in Explorer.
    I'm new to OS X, and really need to be able to do this for my job. Can anyone help??
    Thanks in advance, Marc

    Here's an image to explain better:
    http://img216.imageshack.us/img216/3241/playlisttotaltime.jpg
    However the total time isn't 100% accurate, because I believe iTunes is adding some extra seconds for the gaps in between songs.

  • How to create a dynamic SSIS package for multiple flat file destinations

    Hi,
    I have to create a ssis package which has single data flow task and inside that I have 23 source (sql- select * from - statements)- destination (flat files, 23 distinct) connection.
    Now for each product I have to create separate SSIS package (i.e. if prod=abc then these read select * from abc_tables and 23 abc_ txt files)
    I want to do it dynamically, means only single package and inside that variables will take select * values for each source-dest connection (so i believe 23 variables) and same for destination flat files.
    Let me know. :)
    ANK HIT - if reply helps, please mark it as ANSWER or helpful post

    Sorry It seems you're contradicting yourself. you say I know my source and dest structure and the you're
    asking all I want is to have a dynamic structure
    what does that mean?
    and reading your next sentence
    I want to run a package for 5 products, instead of creating 5 ssis packages with 23 source- dest connection, I would
    like to have one with only 23 source- dest connections 
    What I feel is what you're looking for is to  have a looping structure to loop through each of the 5
    products.
    In that case what you could do is this
    1. Create a object variable in SSIS 
    2. Use a Execute SQL Task to populate the variable with all available products (I think you'll have a master table for that). Set ResultSet property to Full ResultSet and then in ResultSet tab map Object variable to 0 th index
    3. use a ForEachLoop container with ADO .NET recordset enumerator and map to object variable. Create a variable of datatype same as that of Product identifier field to get individual values out
    4. Inside loop create your data flow task with 23 source destination connection. In the query part use a parameter for product field and map it to the variable containing product value to get only data for the product.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Volume control bar

    Have lost the volume control bar on a HP Touchsmart 610,Windows 7 OS. How do I get it back?

    Hi
    Please find the link given below might help you to resolve your issue.
    http://social.technet.microsoft.com/Forums/en/w7itproinstall/thread/e49df7fc-1480-45a6-ba86-f25c2807...
    Let us know how it goes!
    "I work for HP."
    ****Click the (purple thumbs up icon in the lower right corner of a post) to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    Regards
    Manjunath

  • Multiple audio files for one flash video

    My company is developing a presentation software program that
    is flashed-based. We are developing a series of videos that will be
    converted to flash video. We will also be recording multiple audio
    tracks for different languages that we want to swap out and sync to
    the video (like the different audio language tracks on a DVD). Does
    anyone know if you can encode the video and audio to seperate
    tracks and then swap out the audio with another and still synch it
    to the video?
    We want to try and avoid encoding video for all the language
    tracks to save space. If we could have one video file and then
    multiple audio files that can be synched with the video file,
    rather than having to encode video and audio for each language,
    this would save a lot of room. Can anyone think of a way we could
    accomplish this using flash and flash video?

    nope, Keynote doesn't have "triggers" though I figure this has to be on Apple's radar as it's been brought up every time a new version comes out.
    I suppose one work around would be to make a slide for each sound, and have the sound play when you go to that slide. Then make your table a series of buttons that go to each "sound slide" (you can make link buttons, just not triggers). It would give you the effect of clicking to play the sound, it's just that instead, Keynote would be jumping to a slide and playing a sound. All the slides would LOOK the same, and you wouldn't use transitions between them. The effect would get you what you want, it just takes longer to build.

  • Need volume control switch for Satellite U200

    Where can I obtain a new volume control switch for a PLUA1E-00700JEN?
    I do not want the complete board only the switch.

    Contact nearest authorized service provider. Make a call and ask if they can order this small part for you.
    Do you want to exchange it alone?
    Have you already disassembled your notebook?

  • Lumia 920 volume control bar with extra icons

    I am using Lumia 920. When I pressed volume key the volume control bar shows up but there are 3 extra icons play, fast fordward and backward
    Does any one know what do those three buttons do? I have captured the screen.
    Thanks
    TBYU
    Attachments:
    volume_control_bar.jpg ‏169 KB

     If those icons are an annoyance to you, you can install an app called Stop the music. Then after you have finished listening to your music you can use that app which will clear the music control icons from the volume bar.
    http://www.windowsphone.com/en-gb/store/app/stop-the-music/0899997d-c25a-4075-9b28-685308e1568b
    Ray.

  • Mixing multiple audio files using Windows Azure Media Services

    Hi,
    I'm trying to "mix" multiple audio files on the server, e.g. I have 4 different .wav files for each instrument in my song: vocals, guitar, drums, bass.  I want to create a new stereo "mix" from these, but I want to change the relative
    volume of one of the tracks, say vocals, or mute it altogether.  I can use libraries such as NAudio to achieve this, but I'm wondering if Windows Media Services can do this, and if so, can it do it dynamically, i.e. create a live stereo stream and allow
    me to add/drop individual tracks on-the-fly.  I've been looking through documentation on Azure Media Services and Expression Encoder, but haven't found the answer.
    Thanks,
    Alan

    Hi Georgios,
    There is support for using audio overlays in our service - see http://azure.microsoft.com/blog/2014/08/21/advanced-encoding-features-in-azure-media-encoder/ for examples. It may be possible to perform pairwise overlays to implement your scenario.
    However, it's currently not possible for us to integrate customer-built processor code into our service.
    Cheers,
    Azure Media Services team

  • How do i play multiple audio files simultaneously using AudioQueue?

    I've basically gutted what I don't need from the "Speakhere" sample app and I'm left with something I can use to play audio files. I converted wav files to aiff and then renamed the aiff to caf (Just in case this matters). I even tried shortening the files to 10 seconds long, but no difference. I am able to play files singly, but am unable to play more than one file at the same time. When I try to play multiple files, the first one plays correctly but the second will play a horrible long beeping sound. Sounds almost like a buzzer and sometimes will sound like a high pitched beep. My code has all the audio components like the speakhere app (AudioQueueObject, AudioPlayer, AudioViewController). I've changed the AudioViewController to be just my "AudioController" class where when I initialize, I pass in the name of the file and it replaces this line of code:
    CFStringRef fileString = (CFStringRef) [NSString stringWithFormat: @"%@/Recording.caf", self.recordingDirectory];
    with this:
    CFStringRef fileString = (CFStringRef) [NSString stringWithFormat: fileName, self.recordingDirectory];
    Any suggestions? I've been yanking my hair out trying to figure this out and I simply can't. I'm about ready to pull an "Office Space" but instead of beating up a printer, I'm going to destroy my macbook.
    *NOTE: I have only tried this in the simulator, but I'm assuming it will do this on the real thing so I haven't bothered to try.

    Unless I'm mistaken, you need one AudioQueue object for each audio file you want to play. In one of my apps, I basically copied the code provided in the [AudioQueue programming guide|http://developer.apple.com/iphone/library/documentation/MusicAudio/Concep tual/AudioQueueProgrammingGuide/AQPlayback/chapter4_section_1.html#//appleref/doc/uid/TP40005343-CH3-SW1] and made a wrapper object for playback. So then you can do something like this:
    MyAudioManager *manager1 = [[MyAudioManager alloc] initWithFile:@"file1.caf"];
    [manager1 play];
    MyAudioManager *manager2 = [[MyAudioManager alloc] initWithFile:@"file2.caf"];
    [manager2 play];
    // etc...
    If you want to play short files (~10s or less), you can use the simpler AudioServices functions along with SystemSoundID's. It will work fine if you have playback from AudioQueue and AudioServices at the same time.

  • HT201066 How can I split a long recording audio file into multiple audio files?

    Hi,
    How can I split a long recording audio file into multiple audio files?
    With Windows I was using Nero software, which is not available for Mac. Is there any similar app for free for Mac?
    Thanks!

    Hello ingiorgio
    You can import the track into GarageBand and then split the tracks there. Once that it is done you can highlight the ruler section and then share the song to iTunes to get them separated out. 
    GarageBand - Split regions in the Tracks area
    http://help.apple.com/garageband/mac/10.0/#gbnd76fcce04
    GarageBand - Share songs to iTunes
    http://help.apple.com/garageband/mac/10.0/#gbndfb96a96f
    Regards,
    -Norm G.

  • Inputing multiple audio files

    In logic 8 can you from within a session open multiple audio files
    Thanks for the help

    Yep, just drag the from your bin into the arrange window - drag&drop

  • Multiple Audio files on one slide

    Hello,
    I want to have multiple audio files in a table on a single slide.
    Also, these audio files should play when I click on that particular file (which will be placed in a cell in the table)
    How do I do this?
    I see an option with "Play sound on click" but it plays when I click anywhere.
    This doesn't give me the ability to place multiple files and thus be able to play them as needed.
    Thanks.

    nope, Keynote doesn't have "triggers" though I figure this has to be on Apple's radar as it's been brought up every time a new version comes out.
    I suppose one work around would be to make a slide for each sound, and have the sound play when you go to that slide. Then make your table a series of buttons that go to each "sound slide" (you can make link buttons, just not triggers). It would give you the effect of clicking to play the sound, it's just that instead, Keynote would be jumping to a slide and playing a sound. All the slides would LOOK the same, and you wouldn't use transitions between them. The effect would get you what you want, it just takes longer to build.

  • Inserting multiple audio files?

    I'm trying to import 2 separate video and audio files to join them up, however it won't let me insert the second audio track, however the second video track goes in fine?

    Welcome to our community
    Captivate allows audio at three levels.
    Background - Plays for duration of project
    Slide - Plays when slide plays
    Object - Plays when object appears
    What you need to do if you want multiple audio files to play is to insert objects and associate audio with the objects. If you don't wish to see the object and all you want to do is hear the audio, use a Transparent Caption with no text or a Highlight Box with no color or a Click Box with no pause and no action when clicked.
    Cheers... Rick
    Helpful and Handy Links
    Begin learning Captivate 5 moments from now! $29.95
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcererStone Blog
    Captivate eBooks

  • How do you consolidate audio files in Premiere? (Make multiple audio files on a track one file)

    How do you consolidate audio files in Premiere? (Make multiple audio files on a track one file). Also, my client is having a hard time making an omf that Pro Tools can read. The files can not be found by Pro Tools. How do you make an omf that Pro Tools can read?

    Multichannel export;
    http://strypesinpost.com/2012/11/exporting-multichannel-quicktimes-in-premiere-pro/
    When you export the OMF, select Encapulate Files in the Settings window

  • Error message: One or multiple audio files changed in length!

    Hi
    I keep getting this error message:
    "One or multiple audio files changed in length!
    As a result one audio region changed in length or content position."
    But I can't really tell what effect it's having. Slightly worrying though. Any ideas?
    Thanks

    Hello.  No, I have not touched any of the files in the project package.  I don't even know how to access them.  Any ideas?  What triggers this?

Maybe you are looking for