Announcement

Collapse
No announcement yet.

Help with the Blue Gel MP3 Player

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

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

    Comment


    • #3
      Re: Help with the Blue Gel MP3 Player

      Thanks...

      Comment


      • #4
        Re: Help with the Blue Gel MP3 Player

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

        Comment


        • #5
          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...

          Comment

          Working...
          X