Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

moviecliploader problem

Status
Not open for further replies.

onaldi

Programmer
Aug 2, 2005
13
TR
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");
 
thanks kenneth :) i ve solved the problem with using flv.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top