Preloader problem

hey,
i am having a hard time getting my preloader to work. here is the syntax:
loaded_bytes=getBytesLoaded();
total_bytes=getBytesTotal();
percent_done= int((loaded_bytes/total_bytes)*100);
loaderBar.gotoAndPlay (percent_done);
ifFrameLoaded(“Scene 1”, 50) {
gotoAndPlay(“Scene 1”, 1);
}

now when i preview it and view the streaming it works, but when i post it online, i can’t see the bar or stats at all. can someone tell me what is going on?

thanks.

ifFramesLoaded is like dead I think… Try something like this…

loaded_bytes=getBytesLoaded();
total_bytes=getBytesTotal();
percent_done= int((loaded_bytes/total_bytes)*100);
loaderBar.gotoAndPlay (percent_done);
if (loaded_bytes == total_bytes) {
_root.gotoAndPlay("Scene 1", 1);
}

thanks lost in beta! i’ll try that out.