Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
deinButton.onPress = function() {
deinMc.onEnterFrame = function() {
this._x += (this._x - zielKoordinaten)/v
}
}
MovieClip.prototype.floatTo = function(s, x, y) {
this._x += (Math.round(x-this._x)*s)*s;
this._y += (Math.round(y-this._y)*s)*s;
};
deinMc.onEnterFrame = function() {
this.floatTo(.5,444,666);
};
MovieClip.prototype.floatTo = function(s, x, y) {
this._x += (Math.round(x-this._x)*s)*s;
this._y += (Math.round(y-this._y)*s)*s;
};
push.onPress = function() {
_root.objekt.floatTo(.5,444,666);
}
;
MovieClip.prototype.floatTo = function(s, x, y) {
this._x += (Math.round(x-this._x)*s)*s;
this._y += (Math.round(y-this._y)*s)*s;
};
deinButton.onPress = function() {
deinMc.onEnterFrame = function() {
deinMc.floatTo(.5, 444, 666);
};
};
x += 1; macht soviel wie x = x+1;wofür steht +=?
Brunhilde wär kein Problem, der name der Funktion kann beliebig sein. Sollte nur sowohl bei der Dekleration als auch beim Aufruf der gleiche sein...ist floatTo ein flashinterner befehl oder ist das ein name, den ich (z.b.) in brunhilde ändern könnte?