# Determining contents/colour of objects on a frame

**URL:** <https://forum.kirupa.com/t/determining-contents-colour-of-objects-on-a-frame/305456>\
**Category:** flash\
**Created:** [February 25, 2010, 5:39pm UTC](https://forum.kirupa.com/t/determining-contents-colour-of-objects-on-a-frame/305456 "2010-02-25T17:39:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chendy](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@Chendy](https://forum.kirupa.com/u/Chendy)\
**Post date:** [February 25, 2010, 5:39pm UTC](https://forum.kirupa.com/t/determining-contents-colour-of-objects-on-a-frame/305456/1 "2010-02-25T17:39:01Z")

</div>

I am a flash noob, but can code in other languages.

I want to use flash’s gui to do some tweens, creating line black and white drawings (which I know how to do).

NOW THE CHALLENGE:

I now want to be able to extract/infer from the stage which pixels are black and which are white (and fill up a array).

I have two lines of inquiry;

1. Convert the vectors created by the tweens into a “bitmapdata” and then use the getPixel() method to reference the pixels. - This would be great for me (if I could do this on a frame by frame basis), but I do not know how to convert the tween created vector into a bitmapdata object - Help!

2. Do some magic and be able to know what vector lines are on the stage, including their position, length etc.

Any help greatly appreciated, I am stuck!
