1 Reply Latest reply on May 25, 2006 3:19 PM by Newsgroup_User

    Sound Object & Video Sound

    maasMan
      I'm using Professional8. I've created a sound object for an mp3 audio track that is stored in my library. I play the sound object when the movie loads. When the user clicks a button that loads a video clip I have the volume of the sound object for the mp3 fade to 0. When the video plays there is no audio. For some reason the sound object is controlling the video's audio.

      soundObject code (on root timeline):
      _global.themeSong = new Sound(this);
      themeSong.attachSound("themeSong");

      themeSong.start(0, 1);
      themeSong.setVolume(100);

      fade soundObject code (runs in a 3 frame loop until volume == 0):
      tempThemeVol = themeSong.getVolume();
      tempThemeVol = tempThemeVol-5;
      themeSong.setVolume(tempThemeVol);

      any help would be greatly appreciated!!!

      thanks,
      Kevin