Skip to main content
Inspiring
June 30, 2010
Answered

FLV

  • June 30, 2010
  • 1 reply
  • 1882 views

Do i need to use the FLV playback component to load FLV files or can i load FLV files using loadMovie and use them like loaded SWF files? Can FLV files be loaded using ActionScript 1?

I searched for simple examples on how to load an FLV but i can't find any examples... can someone please post an example?

This topic has been closed for replies.
Correct answer kglad

Thanks Petro. Is there any way how i can get the total time of the NetStream? I'm using a scroll bar to traverse the loaded FLV clip but i'm not sure what the most efficient way is to do that. My plan was to use ratio and proportion of the scroll length and scroll position to the total time length then get the appropriate time and use NetStream.seek() to position the clip depending on the scroll position but i don't know how to get the total time length of the clip. Or could i get the total frames of the loaded flv file instead and use a gotoAndPlay? How to gotoAndPlay?


use the onmetadata handler to access the flv's duration.

1 reply

kglad
Community Expert
Community Expert
June 30, 2010

you can't load an flv like a swf.

you can diplay an flv in flash using the flvplayback component or using the netstream class.

i don't think you can use as1 to play an flv.

Petro_O__Bochan
Inspiring
June 30, 2010

You can use AS1 to "load" an FLV file. If you opt for using FMS then you are good to go with Flash Player 6, but if no FMS available you might try using progressive download which requires at least Flash Player 7.

Inspiring
June 30, 2010

What's FMS?