//Debug.write("set source s=",s);
this.intparent.interior.setSource(s);
var irw = intparent.interior.resourcewidth;
var irh = intparent.interior.resourceheight;
if ( irw > irh ){
this.setAttribute( "_wmult" , 1 );
this.setAttribute( "_hmult" , irh/ irw );
this.setAttribute( "_iwmult" , irw/irh);
this.setAttribute( "_ihmult" , 1);
} else {
this.setAttribute( "_wmult" , irw/ irh );
this.setAttribute( "_hmult" , 1 );
this.setAttribute( "_iwmult" , 1);
this.setAttribute( "_ihmult" , irh/irw);
}
this.setAttribute( "_diwmult" , _iwmult - _wmult );
this.setAttribute( "_dihmult" , _ihmult - _hmult );
this.updateX( true );
this.updateY( true );
this.setAttribute( "loaded", true );
intparent.interior.setAttribute("opacity", 0);
intparent.interior.animate('opacity', 1, 200);
this.classroot.onmousedown.sendEvent();
this.classroot.onmouseup.sendEvent();
if ( this.doesdrag ) this.startDragCheck();
if ( this.draginitiator ){
this.stopDrag();
} else {
this.ddcdel.unregisterAll();
if ( this.onplainclick ) this.onplainclick.sendEvent( this );
}
//info('startDragCheck');
this._mdtime = LzTimeKernel.getTimer();
this.ddcdel.register( LzIdle, "onidle" );
this._ddcxp = this.getMouse( "x" );
this._ddcyp = this.getMouse( "y" );
mousedownBeforeDrag ) ||
( 5 < ( Math.abs( dx ) + Math.abs( dy ) ) ) ){
this.startDrag(dx, dy );
}
]]>
this.ddcdel.unregisterAll();
this.setAttribute ( "draginitiator" , true );
this.setAttribute ( "draginitiator" , false );
this.clipfactor = cf;
this.updateX( true );
this.updateY( true );