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.
//Vorgabe
var maxwert:Number = 150;
var geschw = 4;
//Ereignis Prozedure
_root.ball_mc.onEnterFrame = function ()
{
//Kontrolle, ob der maximale Wert erreicht ist
if (this._xscale < maxwert)
{
this._xscale += geschw; // <-- hier z.B. die Geschwindigkeit einsetzen!
this._yscale += geschw;
}else
{
//Objekt zurücksetzen
this._xscale = 100;
this._yscale = 100;
}
}