Creative FL Menus Pack Forum


box Creative FL Menus Pack
Creative FL Menus Pack is a package that contains the following products bundled at a special price: Creative FL Dropdown Menu, Creative FL Vertical Menu, Creative FL Tabbed Menu.

Find out more about Creative FL Menus Pack

Thread: Add Sound Effect to buttons

title left
User Details
message
title right
Russ Haskell

post date:
2008-09-12 15:40:19
Is there any way to add a simple rollover sound effect to any of the menu buttons?

Thanks

Russ
Andrei Rinciog [Extend Studio]

post date:
2008-09-15 06:10:15
Hello Russ,

You can check this tutorial that explains how to use Creative Menus with ActionScript :
http://www.extendstudio.com/Docs/Creative%20FL%20Drop%20Down%20Menu/4_Adding_Button_Actions.html
Write to us again if you have any more questions.

Best regards,
Andrei Rinciog
Russ Haskell

post date:
2008-09-15 18:12:15
Thanks Andrei.
Just one question, since this is a component and I can't access the individual buttons in Flash, where do I put the actionscript? I tried putting it in the onDraw() actionscript code for the menu instance and made sure I set up id's in the xml file and gave the component instance an id of "my_menu" like the example. When I run the movie it does not produce the 'trace' text. Please help. There must be something obvious I'm missing!

Russ
Russ Haskell

post date:
2008-09-15 19:40:41
Also I saw this in the documentation as far as a way to add actions to buttons ...

"Also, ActionScript functions can be attached to button. In order to add an AS function to a button you will have to add the function name instead of the link, preceded by as:?. For example, the "Home" button will call the _root.openHome function and "Products" will call _root.openProducts:

Home,as:_root.openHome
Products,as:_root.openProducts"

Once I set something like this up in the Menu Structure Panel, where do I put the actionscript function for the button? Can you give me an example of what a function would look like to attach a sound to a button and where the actionscript would go?

Any help would be appreciated very much!!

Russ