ReferenceError: Error #1056: Cannot create property

Hi

I have this weird problem which I am hoping someone has the answer to…

  • I use Flex to connect to Blazeds via AMF.
  • I use registerClassAlias to map my AS3 Class to Java.

And for some reason, I get this ReferenceError: Error #1056: Cannot create property when I try to compile.

  • My Class file that I am mapping looks like this:

package com
{
public class MyClass
{
private var blah:Number;

      public function MyClass() {} 
    
      public function getBlah() {..}
      public function setBlah() {...}

}

}

Now when I change the blah declaration to public, it works. …which is great, but I don’t see why I’d have to make it public, i.e. I don’t understand the reason behind it. Shouldn’t my variables is private…

What else could I be missing???

Thanks,

Tehsin Bhayani