leroytrolley
01-18-2006, 01:46 PM
How did you convert your movies to .flv? I used flash mx. The tutrial mentions sometyhing about squeeze. Do you have to use squeeze to convert movies to .flv?
Here is my code that is not working.
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
ns.play("http://www.chrislewis.tv/test/attitude.flv");
rewindButton.onRelease = function(){
ns.seek(0);
}
playButton.onRelease = function(){
ns.pause();
}
var videoInterval = setInterval(videoStatus,100);
var amountLoaded:Number;
var duration:Number;
ns["onMetaData"] = function (obj) {
duration = obj.duration ;
}
function videoStatus(){
amountLoaded = ns.bytesLoaded/ns.bytesTotal;
loader.loaderbar._width = amountLoaded * 313;
loader2.scrub2._x = ns.time / duration * 313;
}
The only thing I can think of at the moment is that I have coverted my .avi's to flv the wrong way. I have used flash mx to convert them.
Here is my code that is not working.
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
ns.play("http://www.chrislewis.tv/test/attitude.flv");
rewindButton.onRelease = function(){
ns.seek(0);
}
playButton.onRelease = function(){
ns.pause();
}
var videoInterval = setInterval(videoStatus,100);
var amountLoaded:Number;
var duration:Number;
ns["onMetaData"] = function (obj) {
duration = obj.duration ;
}
function videoStatus(){
amountLoaded = ns.bytesLoaded/ns.bytesTotal;
loader.loaderbar._width = amountLoaded * 313;
loader2.scrub2._x = ns.time / duration * 313;
}
The only thing I can think of at the moment is that I have coverted my .avi's to flv the wrong way. I have used flash mx to convert them.