...

View Full Version : Is this possible?



Big Stepper
12-17-2002, 02:00 AM
I'm trying to insert audio in a script. It's the roullete script where an alert comes up bang your dead. I want to make it where you also hear a gunshot, Can anyone help me with this? I keep getting errors when i try to do it. My website is under my profile. The script is on the games page....



function fireit(){
var theone=Math.floor(Math.random()*6)

if (theone<=document.fire.bullets.value-1)
alert("Bang. You\'re dead!")
else{
document.fire.message.value="Whew. Got lucky!"
setTimeout("document.fire.message.value='Play Roulette'",500)
}
}




Thanks,
Chris

Skyzyx
12-17-2002, 02:15 AM
#1) Your first post was 20 minutes ago. You don't need to re-post the same question twice. Give it a day or so, as some of the more brilliant minds will probably read your question during the night.

#2) You might try downloading a trial version of Macromedia Flash MX, and searching for tutorials on Flash in order to make it all work. Flash may very well be the best solution to your problem.

chrismiceli
12-17-2002, 03:43 AM
don't use titles like that. read this...
http://www.codingforums.com/showthread.php?threadid=2090



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum