Announcement

Collapse
No announcement yet.

pause wav file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • pause wav file

    i want to pause all wave files when my mp3 file is playing.
    all of my wave files are in the sounds tab (mouse over sounds) box any help would be nice

  • #2
    Re: pause wav file

    The only thing I can think of is to remove the wave files from Sounds Tab on the your objects.

    Then in the corresponding event use a If statement

    %Property% = MP3.GetProperty ("Play State")
    IF (%Property% != "PLAYING" )
    WAV.Play ("%SrcDir%\Click.WAV")
    END IF

    Comment


    • #3
      Re: pause wav file

      im real new at this can you explaine alittle more in depth

      Comment


      • #4
        Re: pause wav file

        In each object you can set the sound file to play when you mouse-over or click the object. In your application, double click on one of the objects that is making the sound while your MP3 is playing and choose the Sounds Tab. Click on the Eraser to remove the sounds for both Mouse Over and Mouse Click.

        Then go to the Actions tab. In the On Mouse Over event, put the following code.

        %Property% = MP3.GetProperty ("Play State")
        IF (%Property% != "PLAYING")
        WAV.Play ("%SrcDir%\Mouse-Over.WAV")
        END IF

        Do the same for the Mouse Click event:

        %Property% = MP3.GetProperty ("Play State")
        IF (%Property% != "PLAYING")
        WAV.Play ("%SrcDir%\Mouse-Click.WAV")
        END IF

        This would require you to have the WAv files in your Distribution folder to work properly.

        Comment


        • #5
          Re: pause wav file

          i got it nevermind. thank you so much this will make a big diff

          Comment

          Working...
          X