# Assign custom property

**URL:** <https://forum.kirupa.com/t/assign-custom-property/274595>\
**Category:** Uncategorized\
**Created:** [October 31, 2008, 8:25pm UTC](https://forum.kirupa.com/t/assign-custom-property/274595 "2008-10-31T20:25:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![avstudio](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@avstudio](https://forum.kirupa.com/u/avstudio)\
**Post date:** [October 31, 2008, 8:25pm UTC](https://forum.kirupa.com/t/assign-custom-property/274595/1 "2008-10-31T20:25:35Z")

</div>

Hi  
i try to migrate from as2 to as3 and i have one problem  
When i attachMovie from library (addChild in as3) and i add custom property  
its work fine.  
Here is ex.

```auto
var i:int;
for (i=0; i<5; i++)
{
	var link:MovieClip = new Link();
	addChild(link);
	link.x = i * 100;
	link.customPropery= "example";
	trace(link.customPropery);
}

```

The problem is when i attach to that symbol custom class in the library  
i got the error:  
#1056: Cannot create property…  
What i miss here?  
sorry if you already mention that in the forum…  
Thanks
