Hi

I'm trying to resize a video object depending on the dimensions of the loaded flv. Here's my script ....
code:

function ClearContents() {
ns.close();
video.clear();
video._alpha = 0;
}
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
video.attachVideo(ns);
ns.setBufferTime(5);
ns.onStatus = function(infoObject:Object) {
switch (infoObject.code) {
case 'NetStream.Play.Start' :
case 'NetStream.Buffer.Full' :
video._width = video.width;
video._height = video.height;
VideoFadeIn();
break;
}
};
function PlayVideo(target) {
ns.play(target);
}
function VideoFadeIn() {
var temp:MovieClip = _root.createEmptyMovieClip("temp", _root.getNextHighestDepth());
temp.onEnterFrame = function() {
video._alpha += 5;
if (video._alpha>90) {
video._alpha = 100;
delete temp.onEnterFrame;
}
};
}


.... and on my thumbnails I have ....
code:

ClearContents();
PlayVideo(this.image_source);


The resize script is lifted straight from the help file, but the flv is playing before the resize. Setting it on 'NetStream.Buffer.Full' is meant to fix this, but it's not working.

Could someone take a look at this please?

thanks
mark