Skip to main content
Known Participant
February 17, 2010
Answered

FLVPlayback not found

  • February 17, 2010
  • 1 reply
  • 782 views

Not sure what I'm doing wrong here. I wrote a bit of code to stream some video. It's just the start, but I wanted to make sure the code was correct so far so I tried to test it, but it fails. I get the error:

1172: Definition fl.video:FLVPlayback could not be found.

What am I doing wrong? Am I using the wrong player?

package 
{
import fl.video.FLVPlayback;
import flash.display.MovieClip;

/**
  * ...
  * @7111211 Chris
  */
public class MVCVideo3 extends MovieClip
{
  private var sVideoSource:String = "MapleSugarFestival.flv";
  public function MVCVideo3()
  {
   init();
  }
 
  private function init():void
  {
   var flvC:FLVPlayback = new FLVPlayback();
   flvC.source = sVideoSource;
   addChild(flvC);
   flvC.play();
  
  }
 
 
}

}

This topic has been closed for replies.
Correct answer kglad

you need an flvplayback component in your library.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
February 17, 2010

you need an flvplayback component in your library.

Known Participant
February 17, 2010

Doh!

Okay, I thought it would just find whatever class info in the classpaths. So, what I did was drag one to the stage and then delete it, that generated one in my library panel. I would have tried dragging one to my library panel but it's the same place as the component panel and I didn't know how I'd switch tabs.

Is that how people normally handle that? Just drag one to the stage and delete it? It just doesn't seem, um, straightforward.

kglad
Community Expert
Community Expert
February 17, 2010

that's how i do it.  click drag to the stage, hit backspace - done.