Solved

Detect if video FLV is finished, play timeline and How to control this video

Posted on 2004-09-23
3
938 Views
Last Modified: 2011-10-03
http://www.thebeatles.mus.br/4.zip

This is my  fla with a FLV video. I use this code to play it:

_global.file="video1.flv";
var netConn:NetConnection = new NetConnection();
netConn.connect(null);
var netStream:NetStream= new NetStream (netConn);
my_video.attachVideo (netStream);
netStream.setBufferTime(10);
netStream.play(_global.file);

stop();


How can I detect if this video is finished ? How can I put control like play, pause, rew, ff to this video? Can I use components to control it? Can you put how I can do this in my file?

Thanks a lot.
0
Comment
Question by:carlosgon
3 Comments
 
LVL 6

Accepted Solution

by:
hsmtp earned 125 total points
ID: 12135687
This is from help

To add a media component to an application:
1. In Flash, select File > New; then select Flash Document.
2. In the Components panel, double-click the MediaPlayback component to add it to the Stage.
3. In the Property inspector, do the following:
- Enter the instance name myMedia.
- Click Launch Component Inspector.
4. In the Component inspector, enter http://www.cathphoto.com/c.flv in the URL text box.
5. Select Control > Test Movie to see the media play.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

912 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now