Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 1969
    Posts
    123

    Help with the Blue Gel MP3 Player

    OK here's a very simple blue gel MP3 player I did:

    http://www.indigorose.com/free/Blue%20Gel.exe

    I would like to attach a condition to the buttons so that if someone presses any button BEFORE they press the load button, a pop-up message directs them to first load an MP3. So for example if someone pressed the play button before loading an MP3 it would instruct them to, "Please load an MP3 file to play"...


    So I guess I have to be able to test if the MP3 path is set yet, %FullPath% is the variable. So how do I set up the play button to test if that path is empty and then either direct the user to load an mp3 or start playing the mp3 depending on the result?

    Thanks

  2. #2
    Join Date
    Dec 1969
    Posts
    123

    Re: Help with the Blue Gel MP3 Player

    As you stated, you need to check if %FullPath% is set, so set a variable in Page Properties > On Initialize:

    %FullPath% = FALSE

    // set the play button to check %FullPath% :
    IF (%FullPath% = FALSE)

    // and if it is not set, load an mp3 using Dialog.FileBrowse
    %FullPath% = Dialog.FileBrowse (Open, "FileOpen","%Desktop%","MP3's (*.MP3)|*.mp3|")

    // once mp3 is chosen, load mp3 for playing and play it
    MP3.Load ("%FullPath%")
    MP3.Play


    // if %FullPath% was set .. go ahead and play it

    ELSE
    MP3.Load ("%FullPath%")
    MP3.Play

    END IF

  3. #3
    Join Date
    Dec 1969
    Posts
    123

    Re: Help with the Blue Gel MP3 Player

    Thanks...

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

    Re: Help with the Blue Gel MP3 Player

    Blue Gel was kewl....I want one...LOL

  5. #5
    Join Date
    Dec 1969
    Posts
    123

    Re: Help with the Blue Gel MP3 Player

    Unless I have a cardio infarction before release date, some variation of Blue Gel will be in AMS4's template suite...

Posting Permissions

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