# (AS2, Flash 8) find the edge of the vector contents of a movieclip-extended class?

**URL:** <https://forum.kirupa.com/t/as2-flash-8-find-the-edge-of-the-vector-contents-of-a-movieclip-extended-class/221501>\
**Category:** flash\
**Created:** [April 4, 2007, 7:12pm UTC](https://forum.kirupa.com/t/as2-flash-8-find-the-edge-of-the-vector-contents-of-a-movieclip-extended-class/221501 "2007-04-04T19:12:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aesir](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@Aesir](https://forum.kirupa.com/u/Aesir)\
**Post date:** [April 4, 2007, 7:12pm UTC](https://forum.kirupa.com/t/as2-flash-8-find-the-edge-of-the-vector-contents-of-a-movieclip-extended-class/221501/1 "2007-04-04T19:12:13Z")

</div>

I am making a class that extends the MovieClip class.

The class must be able to do one important, public function:

**Given a point on the same level as the MovieClip instance, find where that point would collide (the exact edge) with the MovieClip’s vector content on a particular side.**

For example, if a point is unlucky enough to be testing the left side of a movieclip with a left-facing pac-man sort of shape, the point would be projected in the positive x direction, hitting our pac-man somewhere in the mouth.

See the diagram below, which should explain what I am trying to get best.
