PDA

View Full Version : How do i play a sound on rollover?



kh3mical
August 7th, 2003, 03:30 AM
read the subject.:b:
im making a new footer for kirupaforum and i want to have a small sound play on rollover of a certain part of it. i was wondering wat the code was and where should i put it.

thanx in advance:cyborg: :bandit: :)

kode
August 7th, 2003, 03:49 AM
http://www.kirupa.com/developer/actionscript/sound.htm
That will teach you the basics, you'd only have to change the event handlers to rollOver and rollOut. ;)


And keep in mind that the size of your footer must be less than 15k....

kh3mical
August 7th, 2003, 03:51 AM
its only a 3kb sound

thanx

kode
August 7th, 2003, 04:01 AM
OK!! ;)

No problem. :P

kh3mical
August 7th, 2003, 04:11 AM
eh, i still cant do it.

kode
August 7th, 2003, 04:15 AM
What seems to be the problem?

Also, there are a bunch of threads about sound. I'd recommend a search. :sigh:

kh3mical
August 7th, 2003, 04:18 AM
soz, no problem. I CODED IT MYSELF!!!

my first time of coding....i feel so proud ;):)
thanx for ur help

kode
August 7th, 2003, 04:20 AM
Well, you should be proud... ;)

And again, no problem. :)