# Find Closest

**URL:** https://forum.kirupa.com/t/find-closest/319058
**Category:** flash
**Created:** [February 7, 2011, 10:19pm UTC](https://forum.kirupa.com/t/find-closest/319058 "2011-02-07T22:19:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![DanDaMan](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@DanDaMan](https://forum.kirupa.com/u/DanDaMan)
#### Post date: [February 7, 2011, 10:19pm UTC](https://forum.kirupa.com/t/find-closest/319058/1 "2011-02-07T22:19:11Z")

</div>

How would I go about finding the closest instance to a certain spot? I was thinking about using the distance formula and looping through all the instances on the stage, but I don’t know how to find the shortest distance between all those measured. Could someone help me out please? 😃
