Solved

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

Posted on 2004-09-23
3
937 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to how to record live broadcast.

763 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

12 Experts available now in Live!

Get 1:1 Help Now