A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Controlling sound in a Flash Video file

  1. #1
    Junior Member
    Join Date
    Jul 2002
    Posts
    22

    Controlling sound in a Flash Video file

    this is driving me nuts!

    i have a flash movie that gives the user options to select several .mpg clips which are loaded into Level1. Thats all well and good. But I'm also giving them the option of selecting a "director's commentary" track that cuts the sound of the .avi and plays a separate voiceover track.

    My question is: how do I shut the sound off the .avi file on level1 from level0 ?

    is there a way to control video on a different level?

    the flash movie is at www.parkers.ws/other/meteor.html if that helps.



    - Brad

  2. #2
    Lifesaver Lightwave Network's Avatar
    Join Date
    Sep 2002
    Location
    Denver, CO, USA
    Posts
    649
    Not positive, but I don't think you can dynamically control the audio track in a video.


    ... gimme just one more line of code to ease the pain.

    http://www.ln.tv
    http://www.davevillano.com
    http://www.premierloftsdenver.com
    http://www.backyard.cc -- coming soon!


  3. #3
    Registered User
    Join Date
    Apr 2001
    Location
    Akron OH, USA
    Posts
    4,841
    -----
    how do I shut the sound off the .avi file on level1 from level0 ?
    -----
    you create a sound object in the timeline containing the video and set the volume to 0 or allow the user to stop the sound.

    Code:
    soundcontrol = new Sound(this); //assuming movie is in _level1
    
    // sound off button
    on(release){
        _level1.soundcontrol.stop();
    }
    
    or
    
    // sound mute button
    on(release){
        _level1.soundcontrol.setVolume(0);
    }
    ------
    But I'm also giving them the option of selecting a "director's commentary" track that cuts the sound of the .avi and plays a separate voiceover track.
    ------
    this might require a separate audio stream. how do you plan on achieving this?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center