# Decreasing size of object on(Press)

**URL:** <https://forum.kirupa.com/t/decreasing-size-of-object-on-press/222067>\
**Category:** Uncategorized\
**Created:** [April 10, 2007, 2:45pm UTC](https://forum.kirupa.com/t/decreasing-size-of-object-on-press/222067 "2007-04-10T14:45:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpr](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@mpr](https://forum.kirupa.com/u/mpr)\
**Post date:** [April 10, 2007, 2:45pm UTC](https://forum.kirupa.com/t/decreasing-size-of-object-on-press/222067/1 "2007-04-10T14:45:02Z")

</div>

I have a movie that, when a button is pressed, a specific movieclip (named _revealbar_) moves a certain increment (in this case 25 pixels):

```auto

on(press){
    gotoAndStop(2);
    _root.revealbar._x = _root.revealbar._x+25;
}

```

What I’d like to do is have the bar decrease in size instead of just move. Does anyone know how that is achieved?
