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

embedded videos continue playing

New Here ,
Mar 21, 2018 Mar 21, 2018

Hey guys,

Im trying to make a project that basically a series of embedded videos in autoscript 3.0 that together form a short presentation. In between these embedded video, i have a pause and Im looking to use a keypress that would proceed to the next video clip. In short, I'm trying to make a glorified PowerPoint.

So far I have all my embedded video in a row on the timeline with the following actions:

stop();

stage.addEventListener(KeyboardEvent.KEY_DOWN, advance);
function advance(event:KeyboardEvent):void
{
trace("advance");
if (event.keyCode == 32)
{
  play();
}
}

and everything is working well however if i push the spacebar to advance to the next video, I still hear the audio of the first video in the background so i assume it is playing in the background. how can i fix this?

thanks!

142
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

correct answers 1 Correct answer

LEGEND , Mar 21, 2018 Mar 21, 2018

If you add the first of these lines at the top, and the second one just before your 'play()' line, it should stop all sounds:

import flash.media.SoundMixer;

SoundMixer.stopAll();

Translate
LEGEND ,
Mar 21, 2018 Mar 21, 2018
LATEST

If you add the first of these lines at the top, and the second one just before your 'play()' line, it should stop all sounds:

import flash.media.SoundMixer;

SoundMixer.stopAll();

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