# How can I simplify all of these?

**URL:** <https://forum.kirupa.com/t/how-can-i-simplify-all-of-these/236536>\
**Category:** Uncategorized\
**Created:** [August 21, 2007, 7:12pm UTC](https://forum.kirupa.com/t/how-can-i-simplify-all-of-these/236536 "2007-08-21T19:12:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lolomedia](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@lolomedia](https://forum.kirupa.com/u/lolomedia)\
**Post date:** [August 21, 2007, 7:12pm UTC](https://forum.kirupa.com/t/how-can-i-simplify-all-of-these/236536/1 "2007-08-21T19:12:11Z")

</div>

```auto

manhattanItems.manha1.onRelease = function (){
    _root.currentItem1.swapDepths (300);
    _root.currentItem1.removeMovieClip();
    eventResponder({target:point1});
}
manhattanItems.manha2.onRelease = function (){
    _root.currentItem1.swapDepths (300);
    _root.currentItem1.removeMovieClip();
    eventResponder({target:point2});
}
manhattanItems.manha3.onRelease = function (){
    _root.currentItem1.swapDepths (300);
    _root.currentItem1.removeMovieClip();
    eventResponder({target:point3});
}
manhattanItems.manha4.onRelease = function (){
    _root.currentItem1.swapDepths (300);
    _root.currentItem1.removeMovieClip();
    eventResponder({target:point4});
}
manhattanItems.manha5.onRelease = function (){
    _root.currentItem1.swapDepths (300);
    _root.currentItem1.removeMovieClip();
    eventResponder({target:point5});
}
manhattanItems.manha6.onRelease = function (){
    _root.currentItem1.swapDepths (300);
    _root.currentItem1.removeMovieClip();
    eventResponder({target:point6});
}
manhattanItems.manha7.onRelease = function (){
    _root.currentItem1.swapDepths (300);
    _root.currentItem1.removeMovieClip();
    eventResponder({target:point7});
}
manhattanItems.manha8.onRelease = function (){
    _root.currentItem1.swapDepths (300);
    _root.currentItem1.removeMovieClip();
    eventResponder({target:point8});
}
manhattanItems.manha9.onRelease = function (){
    _root.currentItem1.swapDepths (300);
    _root.currentItem1.removeMovieClip();
    eventResponder({target:point9});
}
manhattanItems.manha10.onRelease = function (){
    _root.currentItem1.swapDepths (300);
    _root.currentItem1.removeMovieClip();
    eventResponder({target:point10});
}
manhattanItems.manha11.onRelease = function (){
    _root.currentItem1.swapDepths (300);
    _root.currentItem1.removeMovieClip();
    eventResponder({target:point11});
}
manhattanItems.manha12.onRelease = function (){
    _root.currentItem1.swapDepths (300);
    _root.currentItem1.removeMovieClip();
    eventResponder({target:point12});
}
manhattanItems.manha13.onRelease = function (){
    _root.currentItem1.swapDepths (300);
    _root.currentItem1.removeMovieClip();
    eventResponder({target:point13});
}
manhattanItems.manha14.onRelease = function (){
    _root.currentItem1.swapDepths (300);
    _root.currentItem1.removeMovieClip();
    eventResponder({target:point14});
}
manhattanItems.manha15.onRelease = function (){
    _root.currentItem1.swapDepths (300);
    _root.currentItem1.removeMovieClip();
    eventResponder({target:point15});
}

```

:book:
