Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

playing a sound on cast member rollover??

Status
Not open for further replies.

stevepegg

MIS
May 6, 2001
1
GB
this may sound like a simple question but i'm new to director....

all i want to do is play a sound when the user rolls over a cast member

cheers
steve
 
To play a song when the user rollover the button do this:

puppetSound 1,"mysound"

where, 1 is the number of track that you wanna play the song and "mysound" is the name of castmember where the sound is.

Any doubt please, report
 
Ah, I forgot...

if you want to stop the sound, when the mouse leave the objetc, use:

on mouseLeave
puppetSound 1,0
end

where 1 is the channel and 0 to disable the sound that is playing in this channel.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top