Looping .flv?

Im not sure what I am doing wrong here:


var nc:NetConnection = new NetConnection();
nc.connect(null);

var ns:NetStream = new NetStream(nc);

theVideo.attachVideo(ns);



ns.play("q_exp.flv");
if(ns.time==(30))
{ns.seek (0)}

Help Is super appreciated! Thanks.