i'm using the code above but i' ve a problem. I have a video, i encode it to swf via vertical moons video2swf software. than i ve tried to preload it with the code above. when i open the web page , i see that the video swf file is working before preloading. i use flash 8. the video swf file is about 370 kb. what's the problem??
var klipLoader = new MovieClipLoader();
klipLoader.onLoadStart = function (bosklip) {
kutu.text="loading"
}
klipLoader.onLoadProgress = function (bosklip, yuklenen, total) {
yuzde=Math.floor( yuklenen/total*100);
bar._xscale=yuzde;
kutu.text="% "+yuzde+" yükleme yap?ld?"
}
klipLoader.onLoadComplete = function (bosklip){
kutu._visible=false;
bar._visible=false;
barcervece._visible=false;
}
klipLoader.onLoadInit = function (bosklip) {
bosklip._width = 170;
bosklip._height = 170;
}
klipLoader.onLoadError = function (bosklip, hata) {
if(hata=="URLNotFound"){
kutu.text="Dosya bulunamad?";
}else if(hata=="LoadNeverCompleted"){
kutu.text="Ba?lant? kesildi";
}
}
klipLoader.loadClip("video.swf","_root.bosklip");
var klipLoader = new MovieClipLoader();
klipLoader.onLoadStart = function (bosklip) {
kutu.text="loading"
}
klipLoader.onLoadProgress = function (bosklip, yuklenen, total) {
yuzde=Math.floor( yuklenen/total*100);
bar._xscale=yuzde;
kutu.text="% "+yuzde+" yükleme yap?ld?"
}
klipLoader.onLoadComplete = function (bosklip){
kutu._visible=false;
bar._visible=false;
barcervece._visible=false;
}
klipLoader.onLoadInit = function (bosklip) {
bosklip._width = 170;
bosklip._height = 170;
}
klipLoader.onLoadError = function (bosklip, hata) {
if(hata=="URLNotFound"){
kutu.text="Dosya bulunamad?";
}else if(hata=="LoadNeverCompleted"){
kutu.text="Ba?lant? kesildi";
}
}
klipLoader.loadClip("video.swf","_root.bosklip");