Andromo - Start Making Apps - Free Signup

Announcement

Collapse

New Forum Software

If you're here, you've found the new home for our forums. There will be some bugs to iron out, so thanks for your patience...
See more
See less

play once code....please.

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

  • play once code....please.

    Hello.

    Can someone give me the method for having a file (in this case, audio) play once on a page? I want the user to only hear the message one time and upon return doesn't get the message again.

    Looked through the support site, but couldn't find it there or in a search.

    Any help appreciated.

    M. :

  • #2
    On Startup (Project -> Actions)
    Code:
    playonce = true
    On Show
    Code:
    if playonce then
         --load and play audio here
         playonce = false
    end
    Something like this should work.
    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


    • #3
      Tigger.

      Thanks very much for the quick response. This was exactly what I needed and it worked perfectly.

      Much appreciated.

      M.:

      Comment


      • #4
        np
        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