Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
this.onPress = function() {
var i = 50;
var stime = getTimer();
this.onEnterFrame = function() {
if (i>0) {
this._yscale = 150+Math.sin((getTimer()-stime)/100)*50;
i--;
} else {
delete this.onEnterFrame;
}
};
};
this.onPress = function() {
var i = 50;
var endScale = 150;
var stime = getTimer();
this.onEnterFrame = function() {
if (i>0) {
this._yscale = endScale+Math.sin((getTimer()-stime)/100)*i;
i--;
} else {
delete this.onEnterFrame;
}
};
};
stop();
this.onRollOver = function() {
gotoAndStop(2);
}
this.onRollOut = this.onDragOut = function() {
gotoAndStop(1);
this._yscale = 100;
delete this.onEnterFrame;
}
this.onPress = function() {
var i = 50;
var endScale = 150;
this.onEnterFrame = function() {
if (endScale>100) {
var stime = getTimer();
this._yscale = endScale + Math.sin ((getTimer() - stime) / 100) *i;
endScale--;
} else {
delete this.onEnterFrame;
gotoAndStop(1);
}
}
}
this.onRelease = function() {
gotoAndStop(2);
this._yscale = 100;
delete this.onEnterFrame;
}
this.onRollOver = function() {
gotoAndStop(2);
var i = 25;
var stime = getTimer();
this.onEnterFrame = function() {
gotoAndStop(3);
if (i>0) {
this._xscale = 100 + Math.sin ((getTimer() - stime) / 100) *i;
this._yscale = 100 + Math.sin ((getTimer() - stime) / 100) *i;
i--;
} else {
delete this.onEnterFrame;
gotoAndStop(1);
}
}
}