Skip to main content
HrishikeshKokate
Known Participant
January 17, 2019
Answered

Play FLV using AS3

  • January 17, 2019
  • 1 reply
  • 523 views

I've made an animation in After Effects and got the output in FLV. It's 84MB in size. I've added it to my Animate file's library. I need to play that FLV in various movie clips. As of now, I have added the FLV directly onto the stage. It's used like 5 times and thus, the size of SWF is going too high because of multiple instances of the same FLV. Is there any way I can add that FLV directly to stage and start playing it using Action Script? It's something like we do with audio. Instead of adding the same audio to different keyframes, we just add actions to play the audio from the library. How can it be done in the case of FLV?

This topic has been closed for replies.
Correct answer kglad

use the netstream class to play a video using actionscript.

but, even easier, add your video to a movieclip timeline.  add that movieclip as many times to your project and swf file size will not increase beyond the size required for one movieclip instance.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
January 17, 2019

use the netstream class to play a video using actionscript.

but, even easier, add your video to a movieclip timeline.  add that movieclip as many times to your project and swf file size will not increase beyond the size required for one movieclip instance.

HrishikeshKokate
Known Participant
January 17, 2019

Oh yeah! That just slipped my mind. Thanks a lot!

kglad
Community Expert
Community Expert
January 17, 2019

you welcome.