prova con

if(this.getBytesLoaded() == this.getBytesTotal() && this.getBytesLoaded() > 1024){