Script need help

if (_root.toload) {
if (_root.loader.getBytesLoaded() == _root.loader.getBytesTotal() && _root.loader.getBytesTotal()>10) {
_root.loader.gotoAndPlay(2);

    _root.toload = false;
    _parent.gotoAndPlay("continue");
} else {
    _parent.percent.text = Math.floor(_root.loader.getBytesLoaded()/_root.loader.getBytesTotal()*100)+"%";
    /*trace(Math.floor(_root.loader.getBytesLoaded()/_root.loader.getBytesTotal()*100)+"%");*/
    _root.loader.gotoAndStop(1);

}
}
/trace(_root.loader._currentframe+" Current Frame");/

is is this right script. can u any one tel me wrong in this code