                   // clear resource cache
                   this.resourceCache = null;
               }
-              
+
               this.__isinternalresource = true;
               this.resource = r;
               // instantiate resource at frame 1

                  if (asset is DisplayObjectContainer) DisplayObjectContainer(asset).mouseChildren = false;

                  this.resourceContainer = asset;
                  this.addChildAt(asset,IMGDEPTH);

                  this.applyStretchResource();


      }

      public function applyStretchResource():void {
          var res = this.resourceContainer;

          // Don't try to do anything while an image is loading
