| |||||||
Du magst keine Werbung? Wir auch nicht!
Einfach registrieren und die Werbung ist weg. Diese Nachricht sehen nur nicht registrierte Nutzer.
![]() |
| | LinkBack | Themen-Optionen | Ansicht |
| | #6 (permalink) |
| Neuer User Registriert seit: Sep 2004
Beiträge: 888
|
ja ich weis das es ein ist aber es werde 2 unter schiedlcihe sachen durchgespilet. Code: ViewerClass.prototype.MousePan = function(panEvent)
{
if(this.gInitialized==true && this.gEnabled==true)
{
if(this.gInTransition==false)
{
//trace("nicht aktiv-> "+this._initialZoom);
if (panEvent == "start" && this.gzoom != this._minZoom)
{
if(this.gMouseEnabled)
{
this.gMouseStartX=_root._xmouse;
this.gMouseStartY=_root._ymouse;
this.stopZoomToView();
this.gCurrentTier_mc.startDrag();
this.syncTierMotionID = setInterval(this, "syncTierMotion", 1);
this.setFocus(true);
}
}
}
if (panEvent == "newLoader")
{
if(this.gMouseEnabled)
{
this.gMouseStartX=_root._xmouse;
this.gMouseStartY=_root._ymouse;
this.stopZoomToView();
this.syncTierMotionID = setInterval(this, "syncTierMotion", 1);
this.setFocus(true);
}
}
if (panEvent == "stop")
{
if(this.gMouseEnabled && this.syncTierMotionID != -1)
{
this.gCurrentTier_mc.stopDrag();
clearInterval(this.syncTierMotionID);
this.syncTierMotionID=-1;
this.panStop();
if(this._clickZoom && _root._xmouse-this.gMouseStartX < 3 && _root._xmouse-this.gMouseStartX > -3 && _root._ymouse-this.gMouseStartY < 3 && _root._ymouse-this.gMouseStartY > -3)
{
var currentZoom=this.getZoom();
if(currentZoom==-1)
{
currentZoom=this.calculateScreenZoom();
}
var testZoom=400;
while(testZoom > currentZoom)
{
testZoom/=2;
}
testZoom*=2;
if(testZoom > this._maxZoom)
{
testZoom=this._maxZoom;
}
var x=0.5-(this.getWindowLeft()+(this.getWindowRight()-this.getWindowLeft())*(_root._xmouse-(this._x-this.gViewWidth/2))/this.gViewWidth);
var y=0.5-(this.getWindowTop()+(this.getWindowBottom()-this.getWindowTop())*(_root._ymouse-(this._y-this.gViewHeight/2))/this.gViewHeight);
this.setView(x,y,testZoom);
}
this.updateView();
}
}
}
for(var i=0;i<this.gMouseCallback.length;i++)
{
eval(this.gMouseCallback[i])(this,panEvent);
}
}; |
| | |
| | #9 (permalink) |
| Nagelneuer User Registriert seit: Dec 2005
Beiträge: 924
| ActionScript:
mfg. h
__________________ The fact that you've got "Replica" written on the side of your gun and the fact that I've got "Desert Eagle written on the side of mine ... :D |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |