               this.resource = r;
               
               this.sound = new res['assetclass']() as Sound;
-              this.updateTotalframes();
-              
+              this.totalframes = Math.floor(this.getTotalTime() * MP3_FPS);
+
               // TODO: add condition on this
               this.startPlay()
               

          if (url == null || url == 'null') {
              return;
          }

          this.__isinternalresource = false;

          var loadurl = url;
          var proxied = this.owner.__LZcheckProxyPolicy( url );
          var proxyurl = this.owner.getProxyURL(url);

          // Don't try to do anything while an image is loading
          if (res == null) return;

          var scaleX:Number = 1.0;
          if (this.lzwidth && this._setrescwidth && this.resourcewidth) {
              scaleX = this.lzwidth / this.resourcewidth;
          }

          var scaleY:Number = 1.0;
          if (this.lzheight && this._setrescheight && this.resourceheight) {
              scaleY = this.lzheight / this.resourceheight;
          }

          res.scaleX = scaleX;
          res.scaleY = scaleY;
