Skip to main content
Known Participant
June 3, 2019
Answered

Audio track starts without command

  • June 3, 2019
  • 1 reply
  • 693 views

Hello,

I created a little application using AS3. This app allows a person to select the language of choice (french or english) of a video.

In order to do this, I have established one main timeline with 3 key frames: Frame 1 is Home page with buttons "french" and "english". Key frame 5 is a movieclip with the french movie and key frame 10 is the other movieclip with the movie in english.

Everything woks perfectly except when "english" button is selected, the video plays the french and english audio tracks simultaneously (unusual). On the other hand, when "french" button is selected, only the french audio plays (as expected).

As you would understand from this, I cannot use the "stop all sound" command cause the english audio has to play.

My AS3 session is super clean, I have no idea why the SWF file export this way.

If someone could help I would be very grateful!

Thanks in advance,

Karol

This topic has been closed for replies.
Correct answer kglad

Here is a link to the .FLA file:

audioSartsWithoutCommand - Google Drive

Thanks alot for your help!


remove the french sound layer in video.fr. 

in your library assign the french mp3 a linkage of French.

in frame 1 of video.fr, use:

var french:French=new French();

french.play();

1 reply

kglad
Community Expert
Community Expert
June 4, 2019

there should be an empty keyframe in frame 6 on the layer with the french video.

Known Participant
June 4, 2019

I've looked around but I cannot find any empty keyframes, either on the main timeline or Inside both MovieClips.

kglad
Community Expert
Community Expert
June 4, 2019

you need to create that.  ie, on your main timeline's frame 6 you should insert that empty keyframe (right click frame 6, correct layer, click insert blank keyframe).