Problema de preloader de swf externo


siteLoader.loadMovie("[[COLOR=#800080]http://nicle.no.sapo.pt/som.swf[/COLOR]](http://nicle.no.sapo.pt/som.swf)");
loadingBar._xscale = 1;
loadingBar.onEnterFrame = function() {
[INDENT]kBytesLoadedo = this._parent.siteLoader.getBytesLoaded()/1024;
kBytesTotalo = this._parent.siteLoader.getBytesTotal()/1024;
percentageo = Math.round(kBytesLoadedo/kBytesTotalo*100);
this._xscale = percentageo;
percento.text = percentageo+" %";
total.text = int(kBytesTotalo)+" kbs - total";
kase.text = int(kBytesLoadedo)+" kbs - carregados";
if (percentageo == 99) {
_root.gotoAndPlay(6);
}
[/INDENT]}

As you can see, everything seems to be right … when I run the movie test on flash, there’s no problem and he does the “som.swf” load and plays the sound.
When I upload the file to the server and open through IE, displays a problem … it appears “NaN” on the percentage and nothing animates! But the sound loads, though.
You can try opening the link there.
Can anyone help me please? :m:
Thank you in advance.

look at the tutorials on the main website

i can’t find no tutorials related to a “loadMovie” … external preloader …

http://www.senocular.com/flash/tutorials/preloading/
Scroll down to “Loading External Content” (example 4) it uses LoadMovie.

Also what version of Flash are you using, MovieClipLoader offer much more control. There is an example on that same page using MovieClipLoader, also there is another tutorial here.

[quote=prg9;2340644]http://www.senocular.com/flash/tutorials/preloading/
Scroll down to “Loading External Content” (example 4) it uses LoadMovie.

Also what version of Flash are you using, MovieClipLoader offer much more control. There is an example on that same page using MovieClipLoader, also there is another tutorial here.[/quote]

Oh… thank you! i’m going to check it out.

[quote=prg9;2340644]http://www.senocular.com/flash/tutorials/preloading/
Scroll down to “Loading External Content” (example 4) it uses LoadMovie.

Also what version of Flash are you using, MovieClipLoader offer much more control. There is an example on that same page using MovieClipLoader, also there is another tutorial here.[/quote]

man … i have to appreciate your help. and of course, your availability! between searching and scratching i have suceeded. lol :slight_smile:

thank you very much! :party:

[QUOTE=nicle;2341003]i have suceeded.[/QUOTE]

Congratulations, happy preloading.