Skip to main content
Known Participant
December 11, 2021
Question

Action Script 3.0 dual audio button

  • December 11, 2021
  • 2 replies
  • 291 views

Hello Adobe Community,

 

PLEASE HELP

 

 I'm working on a project, Creating a digital book in which i need dual audio toggle button.

By default hindi audio(1) will be playing but also a button that will enable user to change the audio(2) language to english.

and i'm doing all of this inside a movie clip symbol.

This topic has been closed for replies.

2 replies

Colin Holgate
Inspiring
December 11, 2021

I would think about having two movieclips, one with Hindi and one with English. Then when the button is pressed you would stop both movieclips, hide the one that isn't needed and show the other one, then gotoAndPlay( the current frame of the old one).

For example, to go from Hindi to English you could do this:

hindiMC.stop();

englishMC.stop();

hindiMC.visible = false;

englishMC.visible = true;

englishMC.gotoAndPlay(hindiMC.currentFrame);

 

I made an example file. Do a test movie on this, and click the gray circle. The red and blue animations will toggle, and will continue from where the previous one had got to.

 

Known Participant
December 13, 2021

Thanks sir.

thats a great advice,

Can you provide example file please:)

Colin Holgate
Inspiring
December 13, 2021

That is strange, I did attach the file to my message, but I don't see it now. I will try again.

JoãoCésar17023019
Community Expert
Community Expert
December 11, 2021

Hi.

 

Have you already written some code? Can you show us?

 

Regards,

JC

Known Participant
December 13, 2021

sorry, currently i have not written any code.