> No, you will have problems with that implementation.
>

True.  To make it work, just change up a few things:

mainMclListener.onLoadProgress = function( targetMC, loadedBytes,
totalBytes)
{
       // loadedWeight will increment only once per MC, after it is fully
loaded

       // currentLoaded will tell us the loadedWeight from previous SWFs
combined with this ones progress
       var currentLoaded = loadedWeight + loadedBytes;
      // then do a test to find out the percentage currentLoaded is of
totalWeight. i need to know when it's reached 10%, 20%, 30%, etc...
}

mainMcListener.onLoadComplete = function( targetMC )
{
       var progress = mainMcListener.getProgress( targetMC );
       loadedWeight += progress.bytesTotal;
}
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to