PDA

View Full Version : [AS3] FLVPlayback in .as File (Not Working, Why)


Khoshaba2
06-24-2009, 12:21 AM
Hi all.
Didn't work and came with errors! Why?

package
{
import flash.display.MovieClip;
import fl.video.FLVPlayback;
public class MyClass extends MovieClip
{
var player:FLVPlayback;
public function MyClass()
{
player = new FLVPlayback;
addChild(player);
}
}
}

Imjake9
06-24-2009, 02:56 AM
You need the parenthesis on the "new FLVPlayback()" function. It sould look like this:
package
{
import flash.display.MovieClip;
import fl.video.FLVPlayback;
public class MyClass extends MovieClip
{
var player:FLVPlayback;
public function MyClass()
{
player = new FLVPlayback();
addChild(player);
}
}
}

Khoshaba2
06-25-2009, 12:31 PM
But it still not working. Here are the errors:
1046: Type was not found or was not a compile-time constant: FLVPlayback.
1180: Call to a possibly undefined method FLVPlayback.
1172: Definition fl.video:FLVPlayback could not be found.