Announcement

Collapse
No announcement yet.

Intro WAV one Time

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

  • Intro WAV one Time

    I search the new online HELP menu...but, I would like to play a .wav sound byte the first time automatically and then have a button where someone could play it in the future....I know I have seen a thread on this...but, could someone point me in the right direction?

    TIA!

  • #2
    Re: Intro WAV one Time

    So is this at the start of your project? Like you want a splash .wav?

    Corey Milner
    Creative Director, Indigo Rose Software

    Comment


    • #3
      Re: Intro WAV one Time

      Yea...I guess that is way to think of it....it is actually a radio commercial...about 15 seconds....pretty annoying the second go around.....so, for branding purposes...one time is good...but, then people could play it in the future with an ON/OFF button.....

      Comment


      • #4
        Re: Intro WAV one Time

        The best is to place it on the page using a WAVE > PLAY action. If you only want it to play the first time you could always put that action inside an IF statement and then increment a variable, i.e.

        IF (%x% != "y") {
        PLAY > WAV
        %x%="y";
        }

        Thta's not the right syntax but you get what I mean... As for the play later functionality just attach a WAVE > PLAY action to any button or object... Use "play synchronous" if you want to make everything "stop" while the .wav plays...

        Corey Milner
        Creative Director, Indigo Rose Software

        Comment


        • #5
          Re: Intro WAV one Time

          <pre>
          IF (%AlreadyPlayedOnce%)
          // Insert your WAV - Play action here
          %AlreadyPlayedOnce% = TRUE
          END IF</pre>
          --[[ Indigo Rose Software Developer ]]

          Comment


          • #6
            Re: Intro WAV one Time

            thanks you guys!

            Comment


            • #7
              Re: Intro WAV one Time

              If your saying you want to play the WAV file the first time the app is run and only the first time, you're going to have to store a value in the registry, or a flat text file. Then check against that to see if the app has been run before.

              Comment


              • #8
                Re: Intro WAV one Time

                I am with WORM on this one. If you want to play a wave or mp3 for that matter when a "Page" first loads then I would use the commands listed above. I used this to have a continuous loop background music that would not restart when the customer went back to the first page.

                If you want it to play once the first time it it loaded into a PC then I would store the value in the registry. Then when the CD is inserted again look for the registry string, if it exists don't play it. Depending on your customers you could store the values in the particular users section of the registry. That way if multiple use the same PC with different logins, you would then search within the users section. Would make it a little more complex, but just a thought.

                Tigg
                TJ-Tigger
                "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
                "Draco dormiens nunquam titillandus."
                Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

                Comment

                Working...
                X