Skip to main content
Participant
February 15, 2011
Question

Using VideoPlayer instead of FLVPlayback

  • February 15, 2011
  • 1 reply
  • 336 views

Hi everyone,

I'd like to use the VideoPlayer class instead of FLVPlayback because in theory it uses up less space as it does not have all the skins etc.

However I've found that if I want to throw a VideoEvent to check when the video has finished playing, if I do not have a component of FLVPlayback in my fla. file  library I get a compilation error saying it can not find the "VideoEvent" class.

So what's the point? That would mean that by using VideoPlayer I cant make my swf smaller and I lose functionality...

Has anyone managed to do this? I need to keep my size as small as possible.

Thanks !

This topic has been closed for replies.

1 reply

Inspiring
February 15, 2011

You have to import all the relevant classes in your document

BastiboyAuthor
Participant
February 15, 2011

thanks for your answer moccamaximum.

I did import the classes i need:

import fl.video.VideoPlayer;
import fl.video.VideoEvent;

But it seems like if the FLVPlayback component is not on the stage it wont work. I do not want the component on the stage... it increases the size of my final swf.