netStream/netConn works in small test but not in main fla

Im using netConnection and netStream in flash 8 to play an external flv. this is my code:


var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
vid.attachVideo(ns);
ns.play("MDfp.flv");

close_btn.onRelease = function(){
	vid._alpha = 0;
    ns.close();
};

play_btn.onRelease = function(){
    ns.play("MDfp.flv");
	vid._alpha = 100;
};

The code, buttons and video object are all in the main timeline (scene 1) of a test fla and it works just fine. But, once I take this code and put it in my main fla which loads external audio, text, and supposedly this video, nothing happens. It doesnt play the flv at all.

Any suggestions or links to tutorials would be greatly appreciated.