Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Sound not stopping in embedded flash animation

Explorer ,
Oct 19, 2010 Oct 19, 2010

Hello everyone!

I made an intro for my e-learning module in Flash containing some sounds, including a song that stops and re-starts some seconds later in the same position.

The code is something like this:

Frame 1:

var BGmusic:Sound = new music();
var ModuleSound:SoundChannel = new SoundChannel();
ModuleSound = BGmusic.play();

Frame 1140:

var position:int = ModuleSound.position;
ModuleSound.stop();

Frame 1470:

ModuleSound = BGmusic.play(position,0);

It works flawlessly in Flash, but when I embed the animation in my Captivate file, the code in Frame 1140 is not working anymore. Not to say that once in frame 1470 the sound starts in a new channel and I've got two songs annoyingly playing at the same time in different positions.

Any ideas about how to solve this issue?

1.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 19, 2010 Oct 19, 2010

Hi there,

There are few known issues in "Animation- with audio". Can you please send us your FLA and CPTX file. You may upload it to acrobat.com and provide us the download link.

-Ashwin Bharghav B

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 19, 2010 Oct 19, 2010

Unfortunately both the project and the animation contain confidential information - However, if you really need the files to troubleshoot the issue, I can create a bare version of them with just the code and the music.

Nevertheless, there's not much more code in it that the one I provided. You can replicate the issue yourself by creating a FLA file with my code and a background music sound file in the library called "music".

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 20, 2010 Oct 20, 2010

Ok, I got the sound to stop in captivate by using SoundMixer.stopAll();

Now the problem I've got is that the song is starting over again once I go to the next slide in Captivate

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 20, 2010 Oct 20, 2010

This is turning into something kind of frustrating.

I removed all the code I originally created and used the Flash timelines to produce my sound.

However, I've still got the same problem - once I go to next slide, the music from the flash file starts playing in the background. AGH!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 20, 2010 Oct 20, 2010

Finally, got the solution.

The option Synchronize with Project was causing all the mess.

Unchecked it and made my project look (and sound) awesome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 08, 2010 Nov 08, 2010

Hi Chris

I will like to ask you

where did you embed the song in your captivate project?

Im trying to add a song as a background but ones the slide finish the song end

and please where did you find the option

Synchronize with Project ???

Kind regards

P.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 08, 2010 Nov 08, 2010

Hello Pedro,

I embedded the sound file in the Flash animation, not in the Captivate file. However, the Captivate file had a different background audio that I imported to the library with the option "as Background audio".

If you click the animation you will have the option in the Timing tab of the Properties. I've made a screenshot for you:

Sync.png

I hope that helped!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 08, 2010 Nov 08, 2010
LATEST

beautifull Chris

Thank you a LOT

Best Regards

P.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources