Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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".
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
Finally, got the solution.
The option Synchronize with Project was causing all the mess.
Unchecked it and made my project look (and sound) awesome.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
beautifull Chris
Thank you a LOT
Best Regards
P.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now