It took me four times getting burned by not declaring a class as public
before I started doing it. The error isn't exactly clear, either, which
makes it even tougher. I don't think you need to go back to the drawing
board, but you might need to get zapped by it a couple of times until it
stic
It worked..
Guys you have no idea how much I appreciate your assistance!
Does that mean that brushing up on the basics of as3 should be in order?
geez..
add public IS important!
Thanks Everyone!!
> From: [EMAIL PROTECTED]
> Subject: Re: [Flashcoders] Error 1120?
> Date: Wed, 9 Ja
) {
//return (num1 - num2 )/ 2;
}
}
}
Date: Wed, 9 Jan 2008 18:35:18 -0800
From: [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Error 1120?
You're attempting to access instance vars in a static method. Make
min_num and max_num static.
Also
; From: [EMAIL PROTECTED]
> To: flashcoders@chattyfig.figleaf.com
> Subject: Re: [Flashcoders] Error 1120?
>
> You're attempting to access instance vars in a static method. Make
> min_num and max_num static.
>
> Also, you don't need to put a constructor in a stati
You're attempting to access instance vars in a static method. Make
min_num and max_num static.
Also, you don't need to put a constructor in a static class.
Also, you should follow common practice and put public before static
when declaring functions and variables.
_
Would anyone be able to assist, and tell me why am I getting a
" 1120: Access of undefined property MathUtil." and a
"1180: Call to a possibly undefined method MathUtil." error..
here is the code below..
import com.bigspaceship.util.math.*;
myMathUtil:MathUtil = new MathUtil();
var num = Ma
6 matches
Mail list logo