At 6/11/09 12:13 AM, MasterOfObscurity wrote:
player.onEnterFrame = function() {
function checkground():Boolean {
Can you really have nested functions? I doubt it... place checkground() outside the onEnterFrame.
while(checkground()==false&&jumped==false) {
I don't remember in which order flash does logical statements, but to be sure nothing funky's going on, I'd change this to
while((checkground() == false) && (jumped == false)) {
By the way, I haven't used AS2 in a long time, but I think your code was sort of neat in a way I remember AS2 not to be, with properly typed vars and stuff. Nice!