on (release) {
var netConn:NetConnection = new NetConnection();
netConn.connect(null);
var netStream:NetStream = new NetStream(netConn);
netStream.setBufferTime(5);
myVideo.attachVideo(netStream);
netStream.play("http://www.mediamentale.com/design_mm/pscreds.flv");
preloader.onEnterFrame = function(NetStream) {
var l = NetStream.bytesLoaded();
var t = NetStream.bytesTotal();
var getPercent = l/t;
loadBar._height = getPercent*60;
loadText = Math.round(getPercent*100)+"%";
loadTitle = "Photosynthesis";
if (getPercent == 1 && t != 0) {
delete this.onEnterFrame;
}
};
}
Hi all,
here’s the code…nothing seems to be working with it, short of the FLV actually loading (though it doesn’t want to move past the first frame). the preloader isn’t touching my loadBar,loadText, or loadTitle, though similar code is working for JPG preloads. i’m sure there’s something simple i’m missing, but i’m not used to working with FLVs. Thanks in advance.