Knowledge Base |
Accordion (Tree) Menu V3
Accordion Menu V3 and Accordion Tree Menu V3 are xml flash accordion menus featuring customized states, customized transitions and tweens. Here are all known issues for Accordion Menu V3 and Accordion Tree Menu V3, they should be similar, since basically it is the same component. If you have any questions that you think we should discuss here please let us know.
Can I add a rollover sound?
Thanks!
var soundOnOver:Sound = new Sound();
soundOnOver.attachSound("soundEffect");
var soundClick:Sound = new Sound();
soundClick.attachSound("soundClick");
onRollOverHandler = new Object();
onRollOverHandler.onRollOver = function(evt){
soundOnOver.setVolume(40);
soundOnOver.start();
}
accTreeMenu.addEventListener("onRollOver",onRollOverHandler);
onPressHandler = new Object();
onPressHandler.onPress = function(evt){
soundClick.setVolume(20);
soundClick.start();
}
accTreeMenu.addEventListener("onPress",onPressHandler);
Files: AccordionTreeMenu_With_Sound.zip