PDA

View Full Version : play once code....please.



Michael
02-09-2004, 05:58 PM
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. ::cool

TJ_Tigger
02-09-2004, 06:34 PM
On Startup (Project -> Actions)

playonce = true

On Show

if playonce then
--load and play audio here
playonce = false
end

Something like this should work.

Michael
02-09-2004, 09:20 PM
Tigger.

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

Much appreciated.

M.::cool

TJ_Tigger
02-09-2004, 09:57 PM
np :D