var lo = pr_foto_big_an.pr_foto_big.getBytesLoaded (); var to = pr_foto_big_an.pr_foto_big.getBytesTotal (); if (lo * to > 0 && lo >= to) { }