       public var resourcewidth:Number = 0;
       public var resourceheight:Number = 0;
       public var isroot:Boolean = false;
+      var lastreswidth:Number = 0;
+      var lastresheight:Number = 0;
+      var skiponload = false;
+      var baseurl;
 
       // If null, the handcursor visibility is set to the value of LzMouseKernel.showhandcursor
       // whenevent a mouseover event happens.

        */
      private function soundFrameHandler (event:Event) :void {
          // Event.ENTER_FRAME
          var fr:Number = Math.floor(this.soundChannel.position * 0.001 * MP3_FPS);
          this.frame = fr;
          this.owner.resourceevent('frame', fr);
          
          this.updateTotalframes();
      }

      /** 
        * update totalframes for audio
        */
      private function updateTotalframes () :void {
          var tfr:Number = Math.floor(this.getTotalTime() * MP3_FPS);
          this.totalframes = tfr;
          this.owner.resourceevent('totalframes', tfr);
      }
      
      /** 
        * Sound complete
        */
      private function soundCompleteHandler (event:Event) :void {
          // Event.SOUND_COMPLETE
          if (this.playing) {
              this.frame = this.totalframes;
              this.owner.resourceevent('frame', this.frame);

              // SoundChannel.position does not stop exactly at Sound.length, 
              // there are a few ms difference between both values. 

      }


      /** destroy()
          o Causes the sprite to destroy itself
      */
      public function destroy( ):void {
          //PBR
          this.unload();
          if (parent) {
              parent.removeChild(this);
          }
