?
Solved

Flash FLVPlayBack Action Script 2.0

Posted on 2012-04-05
1
Medium Priority
?
1,533 Views
Last Modified: 2012-04-05
I need to create a video replay button. I am using a FLVPlayBack component in Flash AS2.0. I have named the player as display. I want the video to start playing from the beginning of the video as soon as the replay button is pressed. Any help would be most welcome. Cheers
0
Comment
Question by:skyscream
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 39

Accepted Solution

by:
blue-genie earned 2000 total points
ID: 37810694
Hi there. You do realise that you can change the default playback controls on the FLVPlayback component and there's a default rewind button that will start the play again?
but assuming you want to add your own button for whatever reason, the easiest way to do it in AS2 would be like this.

btnName.onRelease = function()
{
      display.stop();
      display.seek(0);
      display.play();

}
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question