# Access of undefined property instance1

**URL:** <https://forum.kirupa.com/t/access-of-undefined-property-instance1/279675>\
**Category:** flash\
**Created:** [January 17, 2009, 1:09pm UTC](https://forum.kirupa.com/t/access-of-undefined-property-instance1/279675 "2009-01-17T13:09:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![regbolD](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@regbolD](https://forum.kirupa.com/u/regbolD)\
**Post date:** [January 17, 2009, 1:09pm UTC](https://forum.kirupa.com/t/access-of-undefined-property-instance1/279675/1 "2009-01-17T13:09:39Z")

</div>

if i create a new sprite/ or a movieclip and then add it to the stage:

var someName:Sprite = new Sprite();  
addChild(someName);

that sprite/moviclip is going to have some instance name like “instance1”

i can see that with trace:  
trace(someName.name);

but if i then say:  
instance1.x = 100;

i wil get an error: “Access of undefined property instance1”

i know i can say:  
someName.x = 100;

but why cant i get to it through its instance name, or can i somehow?  
and what is the point of that instance name then?

the reason i am asking is if i have multiple sprites with the same name, but different instance names how could i get to each of them in that case?
