Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2000
    Location
    Las Vegas, Nevada
    Posts
    519

    Grin 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. #2
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746

    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

  3. #3
    Join Date
    Nov 2000
    Location
    Las Vegas, Nevada
    Posts
    519

    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.....

  4. #4
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746

    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

  5. #5
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728

    Re: Intro WAV one Time

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

  6. #6
    Join Date
    Nov 2000
    Location
    Las Vegas, Nevada
    Posts
    519

    Re: Intro WAV one Time

    thanks you guys!

  7. #7
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959

    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.


  8. #8
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160

    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

Posting Permissions

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