stop(); var $loaded = this.getBytesLoaded(); var $total = this.getBytesTotal(); if($loaded >= $total) play();