Skip to main content
Cristian_M
Inspiring
October 19, 2010
Question

Sound not stopping in embedded flash animation

  • October 19, 2010
  • 2 replies
  • 1963 views

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?

    This topic has been closed for replies.

    2 replies

    Cristian_M
    Inspiring
    October 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.

    Known Participant
    November 8, 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.

    Cristian_M
    Inspiring
    November 8, 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:

    I hope that helped!

    October 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

    Cristian_M
    Inspiring
    October 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".

    Cristian_M
    Inspiring
    October 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