I’m trying to make an OO video player, but I can’t seem to make the NetConnection work when it’s in a class. What am I doing wrong?
class videoPlayerAS.Nc {
// CONSTRUCTOR
// ------------------------------------------------------------------------------------------
function Nc(){
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.play(file);
_root.video_mc.attachVideo(ns)
}
}
Thanks!