Код AS1/AS2:
var speedIncrement = 1
тележка.onEnterFrame = function()
{
this._х += speedIncrement
speedIncrement += 1 // Подобрать цифирь отн. ускорения, дистанции и встречного ветра
if ( this._х+speedIncrement >= 190 )
{
speedIncrement = 190- this._х // Фиксим прирост, чтобы не уехала далее 190
}
if ( this._х >= 190 )
{
delete this.onEnterFrame; // Хьюстон, мы долетели
}
}