Hi All,
I have 2 movieclips on the stage (called left Container and rightContainer) - they load external jpegs.
There are also 2 dynamic text fields (named infoFieldLeft and infoFieldRight) on the stage.
I want the leftContainer to load the external jpeg (which it does correctly) and count up the file amount loaded and display that in the infoFieldLeft (which it does correctly) - basic preloader stuff.
Once that is complete I then want the rightContainer to load its jpg and do the same count in the file size and display it in infoFieldRight.
But the rightContainer doesn’t load its jpg and doesn’t count up.
I have tried a few configurations for this and now need some help from people who truly know what they are doing (unlike me who tweadles code snippets till I fluke working code).
Here is my code:
_root.leftContainer.loadMovie(“photography/photo_A/photo_A_01.jpg”);
_root.onEnterFrame = function () {
_root.infoFieldLeft = (Math.floor (_root.leftContainer.getBytesLoaded() / _root.leftContainer.getBytesTotal() *100)+"%");
}
leftContainer.onLoadComplete = function ()
{
_root.rightContainer.loadMovie(“photography/photo_A/photo_A_02.jpg”);
_root.infoFieldRight = (Math.floor (_root.rightContainer.getBytesLoaded() / _root.rightContainer.getBytesTotal() *100)+"%");
}
Cheers.
Nos