Hello everyone,
I have created a preloader which is nested and has three frames inside.
On frame one the following actionscript is:
_parent.stop();
(which simply stops the main movie from playing)
On frame two the following actionscript is:
kBytesLoaded = _parent.getBytesLoaded()/1024;
kBytesTotal = _parent.getBytesTotal()/1024;
kBytesRemaining = kBytesTotal - kBytesLoaded;
percentLoaded = 100 * kBytesLoaded / kBytesTotal;
percentRemaining = 100 - percentLoaded;
loadBar._xScale = percentLoaded;
(this is for the loadBar)
And on frame three the following actionscript is:
if (percentLoaded < 99){
gotoAndPlay(2);
} else {
this.loadBar._visible = false;
this.loadText._visible = false;
//this.loadContainer._visible = false;
this.loadLogo._visible = false;
_parent.play();
stop();
}
(which controlls the visibility of elements)
The thing is though, every time I do a test movie, the screen is blank, then the actionscript appears (and is 3 quarters already through) then finishes.
Does anyone have any clue to why this is happening.
Thankyou and regards from Sydney, Australia.
Flash Virgin