Extending AS2 FLVPlayback
Hi,
I'm diving back into AS2 to help a vendor. I've never extended a component class in AS2, and I'm having problems with it now.
Here's my class file:
Actionscript Code:
import mx.video.FLVPlayback;
import mx.video.*;
class AkamaiFLVPlayback extends FLVPlayback{
public function AkamaiFLVPlayback()
{
super()
}
}
Here's how I'm trying to instantiate it from the FLA:
Actionscript Code:
import AkamaiFLVPlayback
var g = new AkamaiFLVPlayback()
this.attachMovie(g,myVid,1)
g.contentPath = "http://phpmotion.fahiec.com/uploads/EY0ttuJbAIerDIpOdDch.flv"
Now this DOES NOT WORK... at all. I can see that the super class FLVPlayback is creating variables, but it's not loading to the stage or initializing.
Any help will be greatly appreciated.
enjoy,
-tutash