Simple question i think

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!


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

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

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

thanks for the help guys! worked perfectly!