zerog
asked on
Button sound on mouseover
Greetings.
How do I add a 'click' sound on mouseover that will apply to all buttons in my flex project? Looking forward to your responses.
Thanks
How do I add a 'click' sound on mouseover that will apply to all buttons in my flex project? Looking forward to your responses.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
CyanBlue I've tried your response but get the following error, maybe I'm implementing it incorrectly.
Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at outreach/onRollOver()[C:\o utreach\sr c\outreach .mxml:35]
at outreach/___outreach_Butto n19_mouseO ver()[C:\o utreach\sr c\outreach .mxml:290]
This is the code for one of my many buttons in the interface
<s:Button includeIn="State1" width="158" height="170"
label="Learn the link"
color="#FFFFFF" fontSize="22" horizontalCenter="310" skinClass="skins.TransBtn2 "
verticalCenter="-2"
click="currentState='inter face1'"/>
Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at outreach/onRollOver()[C:\o
at outreach/___outreach_Butto
This is the code for one of my many buttons in the interface
<s:Button includeIn="State1" width="158" height="170"
label="Learn the link"
color="#FFFFFF" fontSize="22" horizontalCenter="310" skinClass="skins.TransBtn2
verticalCenter="-2"
click="currentState='inter
ASKER
Got it working. My path to the sound file was incorrect. Thank you for a really simple solution.
http://www.actionscript.org/forums/showthread.php3?t=97253