   * Get the total number of bytes for the attached resource
   * @return: A number that is the maximum offset for this resource
   */
-LzMakeLoadSprite.getMaxBytes = function (){
+LzMakeLoadSprite.getMaxBytes = function () {
     return this.getMCRef().getBytesTotal();
 }
 
 /**
   * @access private
   */
-LzMakeLoadSprite.__LZsendError = function ( e ){
+LzMakeLoadSprite.__LZsendError = function (e) {
     this.resourcewidth = 0;
     this.resourceheight = 0;
-    if (this.owner) this.owner.resourceloaderror( e )
-}
-
-/**
-  * @access private
-  */
-LzMakeLoadSprite.__LZsendTimeout = function ( e ){
+    if (this.owner) this.owner.resourceloaderror(e)
+}
+
+/**
+  * @access private
+  */
+LzMakeLoadSprite.__LZsendTimeout = function (e) {
     this.resourcewidth = 0;
     this.resourceheight = 0;
-    if (this.owner) this.owner.resourceloadtimeout( e )
+    if (this.owner) this.owner.resourceloadtimeout(e)
 }
 
 /**

  * load-transformed views and those that aren't
  * @access private
  */
LzMakeLoadSprite.setResource = function ( nresc ){
    // unload anything currently loading...
    if (this.loader.mc.loading == true) {
        LzLoadQueue.unloadRequest(this.loader.mc);
    }
    if ( nresc == "empty" ){
        // call shadowed setResource()
        this.___setResource( nresc );
    } else { 
        if ( nresc.indexOf('http:') == 0 || nresc.indexOf('https:') == 0){
            this.setSource( nresc );
            return;
        }
        this.loader.attachLoadMovie( nresc );
        if ( this.queuedplayaction == null ){
            this.queuePlayAction( "checkPlayStatus" );
        }
        //this.updateAfterLoad();
    }

//     var mc = this.__LZmovieClipRef;
//     Debug.debug(mc, '_width', mc._width);
//     Debug.debug(mc, '_height', mc._height);
//     Debug.debug(mc, '_xscale', mc._xscale);
//     Debug.debug(mc, '_yscale', mc._yscale);
}

//handle error


/**
  * Updates movieclip properties after the resource has loaded
  * @access private
  */
LzMakeLoadSprite.updateAfterLoad = function (ignore){

    this.isloaded = true;
    var mc = this.getMCRef();
    this.resourcewidth = mc._width;
    this.resourceheight = mc._height;

    this.currentframe = mc._currentframe;

    var tfchg = this.totalframes != mc._totalframes;
    if ( tfchg ){
        this.totalframes = mc._totalframes;
        this.owner.resourceevent('totalframes', this.totalframes);
    }

    if ( this.totalframes > 1 ){
        this.checkPlayStatus();
    }

    this.setHeight(this.hassetheight?this.height:null);
    this.setWidth(this.hassetwidth?this.width:null);

    if (this.__contextmenu) {
        this.setContextMenu(this.__contextmenu);
    }


    this.owner.__LZvizLoad = true; 
    this.owner.__LZupdateShown();
    this.owner.resourceload({width: this.resourcewidth, height: this.resourceheight, resource: this.resource, skiponload: false});
    this.owner.reevaluateSize( );   
    //if (this.owner.onload) this.owner.onload.sendEvent( this.loader.mc );

    //Debug.write('Sprite.updateAfterLoad', mc, this.resourcewidth, this.resourceheight, this.resource, this.owner.resource, this.owner, this.x);
    //Debug.warn('Sprite.updateAfterLoad');
}

/**

  * @access private
  */
LzMakeLoadSprite.unload = function () {
    this.loader.unload(this.loader.mc);
}

/**
