Skip to main content
Known Participant
March 26, 2011
Question

FLVPlayback help

  • March 26, 2011
  • 1 reply
  • 592 views

Using an FLVPlayback component that is calling an external video. Got it to pause and seek to 0 when I click to different frame and once I click back I got it to play the video normally FINALLY! Problem is a quarter of the way through the second video play it automatically jumps to next frame. Anyone know why? Hope this thread is much more clear and I can get a response. Here is the scrip ---- Please Help.

--Frame 1--

import fl.video.*;

button.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);

function fl_MouseClickHandler(event:MouseEvent):void
{
    teaser.pause();
    teaser.seek(0);
    teaser.visible = false;

    gotoAndPlay(2);
}

stop();

--Frame 2---

button2.addEventListener(MouseEvent.CLICK, btn2Down);

function btn2Down(event:Event):void
{
    teaser.visible = true;
    teaser.play();
    gotoAndPlay(1);
}

stop();

*teaser being the FLVPlayback instance name.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
March 26, 2011

you have 1 flvplayback component in exactly one keyframe?

Known Participant
March 26, 2011

Yea I am just testing button fuctionality. Trying to place multiple videos on different keyframes the right way. There is a button on frame 1 and another on frame 2. Is this wrong. I just want to call different videos on different pages and have them start over. Should I go back to using nesting a netstream connection script inside a movieclip and add it to the stage?

kglad
Community Expert
Community Expert
March 26, 2011

if yes, how do you get the two different videos to play?