# No property with the name '\_x'

**URL:** https://forum.kirupa.com/t/no-property-with-the-name--x/199208
**Category:** Uncategorized
**Created:** [August 31, 2006, 6:21pm UTC](https://forum.kirupa.com/t/no-property-with-the-name--x/199208 "2006-08-31T18:21:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![littlepowell](https://avatars.discourse-cdn.com/v4/letter/l/a6a055/32.png) [@littlepowell](https://forum.kirupa.com/u/littlepowell)
#### Post date: [August 31, 2006, 6:21pm UTC](https://forum.kirupa.com/t/no-property-with-the-name--x/199208/1 "2006-08-31T18:21:42Z")

</div>

Hello -  
I’m using the below code, and when I test my movie, I get the following message in the output panel

**Error** Scene=Scene 1, layer=Actions, frame=1:Line 10: There is no property with the name ‘\_x’.  
MessageX.\_x = 7;  
**Error** Scene=Scene 1, layer=Actions, frame=1:Line 11: There is no property with the name ‘\_y’.  
MessageX.\_y = (PrevMessage.\_y + PrevMessage.\_height);

Any suggestions?

```auto
function attachMessage(n:Number):Void{
 var MessageX:String = ("Message" + n);
 trace (MessageX);
 this.attachMovie("mcMessageHolder", MessageX, this.getNextHighestDepth());
 if (MessageX != "Message0"){
  var PrevMessage:String = ("Message" + n--);
  trace(PrevMessage);
  MessageX._x = 7;
  MessageX._y = (PrevMessage._y + PrevMessage._height);
 }
 else{
  Message0._x = 7;
  Message0._y = 79;
 }
}

```
