play once code....please.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Michael
    Forum Member
    • Feb 2000
    • 186

    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. :
  • TJ_Tigger
    Indigo Rose Customer
    • Sep 2002
    • 3159

    #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

    • Michael
      Forum Member
      • Feb 2000
      • 186

      #3
      Tigger.

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

      Much appreciated.

      M.:

      Comment

      • TJ_Tigger
        Indigo Rose Customer
        • Sep 2002
        • 3159

        #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