A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [CS3] Sound volume different in one movie clip than the other

  1. #1
    Junior Member
    Join Date
    May 2008
    Posts
    19

    [CS3] Sound volume different in one movie clip than the other

    I'm using the same sound in several movie clips. For some reason the first time the sound is played in one movie clip, it's softer than the rest of them. Any ideas why this is? Any ideas how to fix it?

  2. #2
    Senior Member EQFlash's Avatar
    Join Date
    Jun 2002
    Location
    where i'm at
    Posts
    2,735
    how are you importing the sounds?
    If you don't think you're going to like the answer, then don't ask the question.

  3. #3
    Junior Member
    Join Date
    May 2008
    Posts
    19
    There are only a couple sounds, so they are imported into the library. I'm not familiar with how to load them in externally. If that would decrease my .swf size I'd love to know how.

    I figured out a work around to my sound proble for now. I just added a split second of dead space before the sound so that when it repeats and cuts off, you won't hear the beginning of it play before it stops.

  4. #4
    Senior Member EQFlash's Avatar
    Join Date
    Jun 2002
    Location
    where i'm at
    Posts
    2,735
    if they are mp3 files this is as 2.0
    PHP Code:
     var snd:Sound = new Sound();
    snd.loadSound("your.mp3",true);//true makes them play when loaded, remove "true" if you don't want the sound to play when loaded 
    in as3.0
    PHP Code:
    var snd:Sound = new Sound();
    snd.load (new URLRequest("your.mp3"));
    var 
    snd_channel:SoundChannel = new SoundChannel();
    snd_channel snd.play();//remove this line to keep sound from playing on load 
    Last edited by EQFlash; 06-30-2008 at 12:50 AM.
    If you don't think you're going to like the answer, then don't ask the question.

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