1manni1
Erfahrenes Mitglied
hab mal noch weiter probiert hab dann nun dies stehen
function setzePano (obj) {
obj.mittelpunkt = 500
obj.umkehrPunkt = (obj._width - (obj.mittelpunkt * 2)) / 2
duplicateMovieClip (obj,"navi2", 16385 )
navi2._y = obj._y
obj.onEnterFrame = function (){
_root.navi.onMouseMove = function():Void {
var leer = _root.navi.hitTest(_xmouse, _ymouse, true);
if (leer == true) {
trace("you hit the circle");
this._x = this._x + ((this.mittelpunkt - this._parent._xmouse) / 10)
if (this._x < 0 - this.umkehrPunkt) {
this._x = this._x + this._width
}
if (this._x - this._width > 0 - this.umkehrPunkt) {
this._x = this._x - this._width
}
this._parent.navi2._x = this._x - this._width
}
else if(leer == false) {
trace("nope");
}
}
}
}
getURL("FSCommand:allowscale","false")
outline.swapDepths(10)
setzePano(navi);
Aber nun lagt es ein bisschen
function setzePano (obj) {
obj.mittelpunkt = 500
obj.umkehrPunkt = (obj._width - (obj.mittelpunkt * 2)) / 2
duplicateMovieClip (obj,"navi2", 16385 )
navi2._y = obj._y
obj.onEnterFrame = function (){
_root.navi.onMouseMove = function():Void {
var leer = _root.navi.hitTest(_xmouse, _ymouse, true);
if (leer == true) {
trace("you hit the circle");
this._x = this._x + ((this.mittelpunkt - this._parent._xmouse) / 10)
if (this._x < 0 - this.umkehrPunkt) {
this._x = this._x + this._width
}
if (this._x - this._width > 0 - this.umkehrPunkt) {
this._x = this._x - this._width
}
this._parent.navi2._x = this._x - this._width
}
else if(leer == false) {
trace("nope");
}
}
}
}
getURL("FSCommand:allowscale","false")
outline.swapDepths(10)
setzePano(navi);
Aber nun lagt es ein bisschen