# ReferenceError: Error #1056: Cannot create property

**URL:** <https://forum.kirupa.com/t/referenceerror-error-1056-cannot-create-property/266350>\
**Category:** Uncategorized\
**Created:** [July 18, 2008, 6:39pm UTC](https://forum.kirupa.com/t/referenceerror-error-1056-cannot-create-property/266350 "2008-07-18T18:39:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tipusultan](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tipusultan](https://forum.kirupa.com/u/tipusultan)\
**Post date:** [July 18, 2008, 6:39pm UTC](https://forum.kirupa.com/t/referenceerror-error-1056-cannot-create-property/266350/1 "2008-07-18T18:39:17Z")

</div>

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
