Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
there's not enough info to help you.
to start, what is done to "..advance through the slide"?
what happens when your video plays?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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).
Copy link to clipboard
Copied
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?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now