# Simple question i think

**URL:** https://forum.kirupa.com/t/simple-question-i-think/62236
**Category:** Uncategorized
**Created:** [August 26, 2004, 3:58am UTC](https://forum.kirupa.com/t/simple-question-i-think/62236 "2004-08-26T03:58:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![rdj](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@rdj](https://forum.kirupa.com/u/rdj)
#### Post date: [August 26, 2004, 3:58am UTC](https://forum.kirupa.com/t/simple-question-i-think/62236/1 "2004-08-26T03:58:15Z")

</div>

Here is the deal, i need cerain MC to move to certain x coordinate by pressing a button. but the button is inside the movieclip that need to move…  
I really have no idea on how to do this, but it’s really really really important to me that i know how to do this!

Thank you very much in advance!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 26, 2004, 4:13am UTC](https://forum.kirupa.com/t/simple-question-i-think/62236/2 "2004-08-26T04:13:16Z")

</div>

```auto

on(release) {
_parent._x = //what ever
}

```

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 26, 2004, 4:17am UTC](https://forum.kirupa.com/t/simple-question-i-think/62236/3 "2004-08-26T04:17:02Z")

</div>

inside the movieclip, select the button, open up the actionscript window and apply the follwing code

```auto
on(release){
	_root.mc._x = 50;//replace mc with the name of your MC, and replace the current coordinate with your x coordinate.
	_root.mc._y = 80;//replace mc with the name of your MC, and replace the current coordinate with your y coordinate.
}

```

good luck

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 26, 2004, 4:55am UTC](https://forum.kirupa.com/t/simple-question-i-think/62236/4 "2004-08-26T04:55:23Z")

</div>

thanks for the help guys! worked perfectly!
