Highlighted

Audio track starts without command

Community Beginner ,
Jun 03, 2019

Copy link to clipboard

Copied

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

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

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();

Views

104

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Audio track starts without command

Community Beginner ,
Jun 03, 2019

Copy link to clipboard

Copied

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

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

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();

Views

105

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 03, 2019 0
Adobe Community Professional ,
Jun 04, 2019

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 04, 2019 0
Community Beginner ,
Jun 04, 2019

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 04, 2019 0
Adobe Community Professional ,
Jun 04, 2019

Copy link to clipboard

Copied

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).

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 04, 2019 0
Community Beginner ,
Jun 05, 2019

Copy link to clipboard

Copied

I inserted a blank keyframe at frame 6 on the maintime line, saved and exported the swf file; I still have the same problem. Would you have an other suggestion?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 05, 2019 0
Adobe Community Professional ,
Jun 05, 2019

Copy link to clipboard

Copied

you're doing something wrong.

does your timeline look something like this (notice french video layer does not extend to frame 10 where the english video is located):

Screenshot - 6_5_2019 , 8_07_56 AM.png

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 05, 2019 1
Community Beginner ,
Jun 05, 2019

Copy link to clipboard

Copied

Here is my main timeline:
sessionAS3.JPG
and here is one of the movieClip timeline:
sessionAS3_2.JPG

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 05, 2019 0
Adobe Community Professional ,
Jun 05, 2019

Copy link to clipboard

Copied

that looks problematic.

save with a new name in a new directory.  delete the french folder (and its layer).  test your english button to see if it works the way you expect.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 05, 2019 1
Community Beginner ,
Jun 05, 2019

Copy link to clipboard

Copied

Yes, having followed your instructions, the result is the English video playing with the English audio (no french audio just as wanted). In that case, how should I include the french video + audio wthout it overlapping on the english movieClip?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 05, 2019 0
Adobe Community Professional ,
Jun 05, 2019

Copy link to clipboard

Copied

upload your fla to a server and post a link.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 05, 2019 0
Community Beginner ,
Jun 05, 2019

Copy link to clipboard

Copied

Here is a link to the .FLA file:

audioSartsWithoutCommand - Google Drive

Thanks alot for your help!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 05, 2019 0
Adobe Community Professional ,
Jun 05, 2019

Copy link to clipboard

Copied

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();

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 05, 2019 1
Community Beginner ,
Jun 06, 2019

Copy link to clipboard

Copied

I've deleted the sound layer of the french movieClip and inserted the code you suggested to frame 1.

Then, to assign a linkage; doe's that mean I must rename my file to "French.mp3" in order for the code you suggested to call and play the french sound file?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 06, 2019 0
Adobe Community Professional ,
Jun 06, 2019

Copy link to clipboard

Copied

no.

in your library, each object has a symbol name and can have a linkage assigned.  double click in the linkage column of your french mp3 and you'll be able to type a linkage name.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 06, 2019 0
Community Beginner ,
Jun 06, 2019

Copy link to clipboard

Copied

That's amazing it works, Thank you for guiding me !!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 06, 2019 0
kglad LATEST
Adobe Community Professional ,
Jun 06, 2019

Copy link to clipboard

Copied

you're welcome.

p.s.  i believe the problem is an animate bug caused by the length of the french movieclip timeline.  though it's about 1/2 the max 16000 frames, it still is problematic.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 06, 2019 0