PDA

View Full Version : Override play function


bolo
06-02-2007, 05:07 PM
Hello

I have a class who extends NetStream, i would like override play function.


public class VideoSync extends NetStream
{
//PROPERTIES
private var _nc:NetConnection;

//CONSTRUCTOR
public function VideoSync()
{
_nc = new NetConnection();
_nc.connect(null);
super(_nc);
init();
}

public override function play(... arguments):void {
trace(arguments)
super.play(arguments);
}
}

when i tested my class the video don't play

Can you help me ?

Thanks

senocular
06-03-2007, 06:34 PM
super.play.apply(this, arguments);

hangalot
06-04-2007, 11:37 AM
i would anyway advise composition over inheritance for this. you are limiting your netstream to only progressive currently. as to video sync stuff, its weird that i even have a package named that.

bolo
06-05-2007, 01:10 PM
super.play.apply(this, arguments);

Thanks