Recent posts by AtomicCicada on Kongregate

Flag Post

Topic: Kongregate Labs / ArgumentError: Error #1063 [Solved]

Sorry to pull up an old thread, but I recently ran into a similar problem. Sometimes a certain function that I was calling in a certain class would throw this same error #1063, that it expected 1 argument and got 0.

Problem was that the function I was calling that was throwing the error expected no arguments at all.
public function checkGlyphComplete():Boolean {
And the code calling that function offered no arguments:
if(mC2.checkGlyphComplete() == false){

Still I was getting that error #1063.

So I added a bogus argument to both,
public function checkGlyphComplete(dd:String):Boolean {
if(mC2.checkGlyphComplete(“d”) == false){

and everything works fine now. WTF?