It’s compatible in the way that the two libraries can live and work
together. But if you are registering more than one click handler on
one element, you have to do that carefully. Try this in the
Protaculous Action instead of the Sound FX Action:
document.observe('click',function(evt){
var elm;
if(elm = evt.findElement('.controls')){
Sound.play('Resources/whoosh.wav', {replace:true});
}
});
You need to set Protaculous’s Library picker to scriptaculous-packed,
and you also need to use the Upload Stuff Action or some other means
to get whoosh.wav into your Resources folder.
What this does is listen for a click on the document, then filters
that click to see if it was sent by one of the tabs in your Carousel
(they all have the .controls classname in their ancestry). If so, the
whoosh is played.
If you wanted it to play also when the previous/next buttons are
pushed, then modify the findElement function to read
findElement('.controls, .previous, .next')
and that will capture all of them. Get a WAV of the Enterprise bridge
turbo-lift doors, for extra geek cred!
Walter
Walter
On Mar 22, 2011, at 1:08 AM, Marcus V Do Carmo wrote:
Hi Walter. Yes, im using a wav file. I’m using the carousel action
together in a way that a click of a mouse on the carousel tab moves
the slider while it sounds like a sliding door. Is the carousel
action compatible with the sound fx?
M
Sent from my iPhone
On Mar 22, 2011, at 12:53 AM, Walter Lee Davis email@hidden
wrote:
I would check that the sound file is in a format your browser can
play. I just tried this with a tiny WAV file, and it worked very
nicely on click.
Walter
On Mar 22, 2011, at 12:10 AM, Marcus Do Carmo wrote:
hello!
I’m triying to use the sound FX action with a rollover button and
set it to sound when click and it didn’t work. When I changed it
to sound on mouse hover it worked, but what I want is to sound
when click and don’t have any clue why it won’t work.
Please any help
Thanks in advance,
Marcus
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options