# Know what has been drawn in a 'graphics' object

**URL:** <https://forum.kirupa.com/t/know-what-has-been-drawn-in-a-graphics-object/292660>\
**Category:** flash\
**Created:** [July 17, 2009, 6:15am UTC](https://forum.kirupa.com/t/know-what-has-been-drawn-in-a-graphics-object/292660 "2009-07-17T06:15:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neeraj\_b](https://avatars.discourse-cdn.com/v4/letter/n/7ab992/32.png) [@neeraj\_b](https://forum.kirupa.com/u/neeraj_b)\
**Post date:** [July 17, 2009, 6:15am UTC](https://forum.kirupa.com/t/know-what-has-been-drawn-in-a-graphics-object/292660/1 "2009-07-17T06:15:06Z")

</div>

Hi,

Lets say I have a customMovieClip. I sometimes draw an ellipse with customMovieClip.graphics and sometimes a rectangle.

Now I want to know what was the shape ( ellipse/rect) that was created using a particular graphics object. Doing this would enable me to pinpoint what exactly to do with that customMovieClip() instance.

Ny ideas?  
I couldn’t find how to search for this ( if it exists) in the forums. 🙂

Thanks.
