# Help work with Button

**URL:** <https://forum.kirupa.com/t/help-work-with-button/303229>\
**Category:** flash\
**Created:** [January 17, 2010, 1:45am UTC](https://forum.kirupa.com/t/help-work-with-button/303229 "2010-01-17T01:45:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![walerka](https://avatars.discourse-cdn.com/v4/letter/w/ea5d25/32.png) [@walerka](https://forum.kirupa.com/u/walerka)\
**Post date:** [January 17, 2010, 1:45am UTC](https://forum.kirupa.com/t/help-work-with-button/303229/1 "2010-01-17T01:45:44Z")

</div>

how to do so by clicking on the button movieclip moved to x = 100;  
and when pressed repeatedly to x =- 150

event onRelease - not work:

```auto
yyy.onRelease = function ()
{
	test._x = 100;
	
}

yyy.onPress = function ()
{
	test._x = -150;

}

```

yyy - my button  
test - movie clip you want to move

Thanks
