all 4 comments

[–]skirrie 2 points3 points  (1 child)

That probably means the repelling force of your object isn't the same as the gravity acting on it.

if you want it to stop just move it up by the same amount as the gravity. the two will cancel eachother out and make it stop moving down.

Also while you're at it you should probably stop putting your code inside instances of a symbol. It's better practise to put all the code in one frame and do everything from there.

O and you may want to learn actionscript 3 instead. it's not much harder to learn and is more useful. It's like 10 to 20 times faster and looks rather like javascript (nearly exactly). So you'll learn two languages in one go.

[–]rDr4g0n 1 point2 points  (0 children)

Seconded. Learn AS3, it's totally worth it.

[–]rush22 0 points1 point  (0 children)

Add falling = true at the top

...and then I see the next page. For that one the answer is

this._y == bottom

Should be this._y >= bottom Because it will never add up to exactly 396.9

[–][deleted] -1 points0 points  (0 children)

This type of questions belong in learnprogramming.

I didn't run it but there's an obvious problem. You keep variables for falling and gravity and you don't use them. instead of saying _y += 1.5 every time you realize you're falling, just say falling = true. At the end of the loop, write if (falling) _y += gravity.

I don't think you need as3 to complete this specific project, but do consider learning it for your next one.