# Very Strange "Infinity"

**URL:** <https://forum.kirupa.com/t/very-strange-infinity/184593>\
**Category:** Uncategorized\
**Created:** [April 6, 2006, 4:02am UTC](https://forum.kirupa.com/t/very-strange-infinity/184593 "2006-04-06T04:02:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedro\_paulo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/pedro_paulo/32/2017_2.png) [@pedro\_paulo](https://forum.kirupa.com/u/pedro_paulo)\
**Post date:** [April 6, 2006, 4:02am UTC](https://forum.kirupa.com/t/very-strange-infinity/184593/1 "2006-04-06T04:02:34Z")

</div>

[FONT=Arial]Hy, guys!

I´m having a very difficult problem:

There are two swf that can not get the “totalBytes” of a jpeg file using loadClip class…

My code:

> 

//criando um movie clip loader…  
var fotosMCL:MovieClipLoader = new MovieClipLoader();  
loaderFotos = new Object();  
fotosMCL.addListener(loaderFotos);  
//---------\<codes para trigger\>----------------\  
// Iniciada a leitura dos dados  
loaderFotos.onLoadStart = function(targetMC) {  
targetFotos\_mc.\_visible = false;  
preloader\_mc.\_visible = true;  
};  
// Durante…  
loaderFotos.onLoadProgress = function(targetMC:MovieClip, lBytes:Number, tBytes:Number) {  
targetFotos\_mc.\_visible = false;  
preloader\_mc.\_visible = true;  
preloader\_mc.loadBytes\_txt.text = lBytes;  
preloader\_mc.totalBytes\_txt.text = tBytes;  
var bytPerc:Number = Math.round((lBytes/tBytes)_100);  
var totalFrames:Number = preloader\_mc.ponteiro\_mc.\_totalframes;  
var proximoQuadro:Number = Math.round((bytPerc_totalFrames)/100);  
preloader\_mc.ponteiro\_mc.gotoAndStop(proximoQuadro);  
preloader\_mc.infoSwf\_txt.text = bytPerc;

```
        };
        //Acabada...
        loaderFotos.onLoadComplete = function(targetMC) {
            targetFotos_mc._visible = true;
            preloader_mc._visible = false;
        };
        fotosMCL.loadClip(fotosURL+"foto0.jpg", "targetFotos_mc");
        infoFotos_txt.text = "1/"+numFotos;
        //---------&lt;/codes para trigger&gt;----------------\\
        var k:Number = 0;
        function proxFotografia() {
            if (k&lt;=numFotos) {
                var fotoX = fotosURL+"foto"+k+".jpg";
                fotosMCL.loadClip(fotoX, "targetFotos_mc");
                preloader_mc._visible = true;
            }
            // a chave abaixo fecha o if (k) das fotos...                                       
        }
        proximaFoto_btn.onRelease = function() {
            if (k&lt;numFotos-1) {
                k++;
                proxFotografia();
                var tN = k+1;
                infoFotos_txt.text = tN+"/"+numFotos;
                fotoAnterior_btn.enabled = true;
                fotoAnterior_btn._alpha = 100;
            } else {
                proximaFoto_btn.enabled = false;
                proximaFoto_btn._alpha = 45;
            }
        };
        fotoAnterior_btn.onRelease = function() {
            if (k&gt;0) {
                k--;
                proxFotografia();
                var tN = k+1;
                infoFotos_txt.text = tN+"/"+numFotos;
                proximaFoto_btn.enabled = true;
                proximaFoto_btn._alpha = 100;
            } else {
                fotoAnterior_btn.enabled = false;
                fotoAnterior_btn._alpha = 45;
            }
        };

```

But the most strange parts: testing the movie IN MY COMPUTER, everything is ok! But when I publish it, I lost the totalBytes number. :bad:😠:huh:

Here you see the problem:

-----Editing… (04/06) sorry for the broke link…--------  
[http://www.ppwebart.com/testes/intermarine/seminovosX.swf](http://www.ppwebart.com/testes/intermarine/seminovos.swf)  
If you check this link using IE, choose a button and the “preloader” of the MovieClipLoader appears. Then, the “0” at the right is a dinamic text box wich shows the “tBytes”… How the “tBytes” is = 0, my percent is “Infinity”…  
If you test the swf with Firefox the right text box shows bLoad too… (???)

Now, at this link:  
[http://www.ppwebart.com/testes/intermarine/kirupaVideo/paraKirupaForum.html](http://www.ppwebart.com/testes/intermarine/kirupaVideo/paraKirupaForum.html)  
you will see a fast video (19s) of my Flash testing the same swf, working fine…

I hope someone to help me.

Thanks a lot!

pp  
[pedropaulo@ppwebart.com](mailto:pedropaulo@ppwebart.com)  
[/FONT]
