Function to load video

I’m trying to make a function to load videos at the end of a tween using Tweener but its just not working…

Here’s the code the set up the video objects:


var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
videoInterfaceMC.videoMC.attachVideo(stream_ns);

Then the function to load the video:


// Function that loads video into videoMC
function loadVideo(filename:String) {
    stream_ns.play(filename);
}

The code to called the function:


Tweener.addTween(videoInterfaceMC, {_y:780, time:2.5, delay:12, transition:'easeoutcirc', onComplete:loadVideo('video/video.flv')});

I even tried putting the first set of code inside the function… but that doesn’t work either. It doesn’t give any errors… just doesn’t load the video. It works fine when I just use stream_ns.play(‘video/video.flv’)… but I want to be able to load different videos.