# Problema de preloader de swf externo

**URL:** <https://forum.kirupa.com/t/problema-de-preloader-de-swf-externo/262934>\
**Category:** Uncategorized\
**Created:** [June 11, 2008, 8:13am UTC](https://forum.kirupa.com/t/problema-de-preloader-de-swf-externo/262934 "2008-06-11T08:13:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicle](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@nicle](https://forum.kirupa.com/u/nicle)\
**Post date:** [June 11, 2008, 8:13am UTC](https://forum.kirupa.com/t/problema-de-preloader-de-swf-externo/262934/1 "2008-06-11T08:13:31Z")

</div>

```auto

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? Ⓜ  
Thank you in advance.

---

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [June 11, 2008, 8:16am UTC](https://forum.kirupa.com/t/problema-de-preloader-de-swf-externo/262934/2 "2008-06-11T08:16:41Z")

</div>

look at the tutorials on the main website

---

<div class="post-metadata">

**Author:** ![nicle](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@nicle](https://forum.kirupa.com/u/nicle)\
**Post date:** [June 11, 2008, 12:15pm UTC](https://forum.kirupa.com/t/problema-de-preloader-de-swf-externo/262934/3 "2008-06-11T12:15:23Z")

</div>

> [@randomagain;2340567](#):
>
> look at the tutorials on the main website

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

---

<div class="post-metadata">

**Author:** ![prg9](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@prg9](https://forum.kirupa.com/u/prg9)\
**Post date:** [June 11, 2008, 12:29pm UTC](https://forum.kirupa.com/t/problema-de-preloader-de-swf-externo/262934/4 "2008-06-11T12:29:37Z")

</div>

[http://www.senocular.com/flash/tutorials/preloading/](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](http://www.kirupa.com/developer/actionscript/moviecliploader.htm).

---

<div class="post-metadata">

**Author:** ![nicle](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@nicle](https://forum.kirupa.com/u/nicle)\
**Post date:** [June 11, 2008, 12:51pm UTC](https://forum.kirupa.com/t/problema-de-preloader-de-swf-externo/262934/5 "2008-06-11T12:51:34Z")

</div>

[quote=prg9;2340644][http://www.senocular.com/flash/tutorials/preloading/](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](http://www.kirupa.com/developer/actionscript/moviecliploader.htm).[/quote]

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

---

<div class="post-metadata">

**Author:** ![nicle](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@nicle](https://forum.kirupa.com/u/nicle)\
**Post date:** [June 11, 2008, 8:54pm UTC](https://forum.kirupa.com/t/problema-de-preloader-de-swf-externo/262934/6 "2008-06-11T20:54:37Z")

</div>

[quote=prg9;2340644][http://www.senocular.com/flash/tutorials/preloading/](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](http://www.kirupa.com/developer/actionscript/moviecliploader.htm).[/quote]

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

thank you very much! :party:

---

<div class="post-metadata">

**Author:** ![prg9](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@prg9](https://forum.kirupa.com/u/prg9)\
**Post date:** [June 11, 2008, 9:29pm UTC](https://forum.kirupa.com/t/problema-de-preloader-de-swf-externo/262934/7 "2008-06-11T21:29:33Z")

</div>

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

Congratulations, happy preloading.
