# Objects acting funny

**URL:** <https://forum.kirupa.com/t/objects-acting-funny/174108>\
**Category:** flash\
**Created:** [January 2, 2006, 11:33pm UTC](https://forum.kirupa.com/t/objects-acting-funny/174108 "2006-01-02T23:33:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sinister\_Shadow](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@Sinister\_Shadow](https://forum.kirupa.com/u/Sinister_Shadow)\
**Post date:** [January 2, 2006, 11:33pm UTC](https://forum.kirupa.com/t/objects-acting-funny/174108/1 "2006-01-02T23:33:42Z")

</div>

I’m using an object in one of my classes but I’ve noticed that it’s showing some wierd behaviour. It’s not an end of the world thing but was wondering if someone could explain this please:

```auto
var someObj:Object = new Object();
someObj["var1"] = "Hi";
trace(someObj.var1) //outputs undefined

```

Is this intentional? I always thought the dot notation and the array notation were interchangeable.
