Is it possible to create an On/Off button to toggle audio on and off using AS3?
The Adobe help files do not seem to provide this, only AS2 options using Behaviours.
When I click on a button and choose Behaviours I get a warning that it only works with AS2.
I change the project to AS2 and then half of my actionscript stops working.
Highlight the button.
Click on the ACTIONS tab.
Click on CODE SNIPPETS.
Choose AUDIO AND VIDEO > CLICK TO STOP ALL SOUNDS
This well then add the required AS3 code to your ACTIONS layer.
thanks for the response. I'll play with it and see if it suits.
I wonder does it provide the option to swop buttons so that one shows off and the others shows play.
Not sure about that, you might have to play around with the code.