Current location - Health Preservation Learning Network - Healthy weight loss - How does flash as3.0 play external video to make the video full frequency?
How does flash as3.0 play external video to make the video full frequency?
It depends on what format the external video is.

But anyway, you have to load the video to get its length.

If you load video animation in swf format, you usually use loader to load swf. After loading, you can:

Total number of frames: moveiclip (loader.content). Total number of frames;

Current frame number: moveiclip (loader.content). Current framework;

For videos in flv and f4v formats, if you use flaplayback included with flash or use a video player to load them yourself, you can do the following:

Total time (seconds): flvplayback.totaltime

video player . total time;

Current time (seconds): flvplayback. playheadtime;

video player . play head time;