[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Flash FLVPlayBack Action Script 2.0

Posted on 2012-04-05
1
Medium Priority
?
1,550 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
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses
Course of the Month20 days, 11 hours left to enroll

864 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