Flash will not accept preloader

i have used all the preloader logic presently out there but my flash just wont accept anyof them. what i mean by that is that it freezes at the 1st frame but when i remove the preloader layer, it works fine again. this is the preloader i am using now

on the action layer 1st frame :
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
if (bytes_loaded == bytes_total) {
_root.gotoAndPlay(3);

}
2nd frame: this.gotoAndPlay(1);

welcome to the forums wonder

your code seems alright to me so I don’t see what’s wrond with it - try posting your fla…

(there is one dumb thing you can do which worked for me once is put your actions on the 1st and 3rd frame, not the second one…)

or else maybe try:


if (_root.getBytesLoaded == _root.getBytesTotal) {
....;
}