# Object Initialization Problem

**URL:** https://forum.kirupa.com/t/object-initialization-problem/171501
**Category:** flash
**Created:** [December 6, 2005, 2:04am UTC](https://forum.kirupa.com/t/object-initialization-problem/171501 "2005-12-06T02:04:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gokhan](https://avatars.discourse-cdn.com/v4/letter/g/7993a0/32.png) [@gokhan](https://forum.kirupa.com/u/gokhan)
#### Post date: [December 6, 2005, 2:04am UTC](https://forum.kirupa.com/t/object-initialization-problem/171501/1 "2005-12-06T02:04:08Z")

</div>

Hi all,

I initialize the “point” object like:

point = {x:‘209’, y:‘270’};  
trace(point.x);

this is working fine,

But I have to initialize the “point” object with a string variable which holds the initialization properties like:

str = “{x:‘209’, y:‘270’}”;  
point = {}  
point = str;

I know this is not working.

Is there any method to initialize the object with a string variable which holds the initialization properties (without parsing the text) ? Thanks…
