PDA

View Full Version : rollover buttons :(


iditush
02-29-2004, 02:39 PM
I have a page with various photos. I want to have each photo have a sound when you rollover them. for some reason I am having a hard time achieving this....ALSO, I want to have the sound PLAY when the mouse is over the photo, and the sound STOP when the mouse is not over it (eg. if the user goes to a different photo they will hear the sound of that photo and not all the other sounds).
When the user clikck the photo, how can I have it go to a new website ?
I am so confused....everything i am trying does not work....
I thought to have each photo be a button, and have rollover and mouseclick actions but since i am new i am getting it all confused.
PLEASE HELP :(

vik
02-29-2004, 05:53 PM
Hi!!! iditush


yes you can do it like that, just have each photo as a button and then put the sound that you want inside the button, so when you rollover, it plays the sound.

and how to go to a new website place this script in your button code.

on (release) {
getURL("http://www.actionscript.org");
}

iditush
02-29-2004, 06:34 PM
THANX ;)
Actually there was a problem with the sound (apparently WAV and AIFF create problems)....so I converted it into MP3 and it is working the right way!
:D