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

Flash presentation get stucked after playing and stopping a video

Guest
Jul 08, 2013 Jul 08, 2013

I have a presentation made in AS3 where there are some slides and a video. If I skip the video without playing it, I can advance through the slides normaly. But when I watch the video and stop it, the presentation get stucked on the next frame.

¿What can I do?

Thanks

TOPICS
ActionScript
737
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 Expert ,
Jul 08, 2013 Jul 08, 2013

there's not enough info to help you.

to start, what is done to "..advance through the slide"?

what happens when your video plays?

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
Jul 08, 2013 Jul 08, 2013

You can advance with arrows or with the space bar. It gets stucked too when the video plays. The first time I played it, it worked. But now I have that problem too with the video playing.

The video has button controls (play, pause) and is FLV format imported extrenally.

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 Expert ,
Jul 08, 2013 Jul 08, 2013

if the video on a keyframe? if yes, which?

are the arrows and their actionscript on a keyframe? if yes, which?

if the answer is yes to both and those keyframes are different, that's probably the problem.

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
Jul 08, 2013 Jul 08, 2013

Yep. The video is in the fifth keyframe.

There are no arrows on the presentation. I was tying to say that the user navigate through the presentation with the keyboard arrows. The actionscript is in the first keyframe and it is:

stage.addEventListener(KeyboardEvent.KEY_DOWN, fl_changeSlide);

function fl_changeSlide(evt:KeyboardEvent):void

{

          if(evt.keyCode == 37) // LEFT

          {

                    gotoAndStop(this.currentFrame-1);

          }

          else if (evt.keyCode == 39 || evt.keyCode == 32) // RIGHT OR SPACE

          {

                    gotoAndStop(this.currentFrame+1);

          }

}

stop();

After the video frame, i embedded a SWF that joins both presentations in one in order to get a less heavier file (otherwise, the file gets slow).

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 Expert ,
Jul 09, 2013 Jul 09, 2013
LATEST

what do you mean by ".. i embedded a swf"?

are you loading a swf using loader instance?

and, can you see your key listeners still working after starting the video?

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