Solved

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

Posted on 2004-09-23
3
940 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

831 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