# AS3 BitmapData getPixel? Need Help

**URL:** https://forum.kirupa.com/t/as3-bitmapdata-getpixel-need-help/294659
**Category:** Uncategorized
**Created:** [August 18, 2009, 9:11am UTC](https://forum.kirupa.com/t/as3-bitmapdata-getpixel-need-help/294659 "2009-08-18T09:11:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![popnfresh24](https://avatars.discourse-cdn.com/v4/letter/p/87869e/32.png) [@popnfresh24](https://forum.kirupa.com/u/popnfresh24)
#### Post date: [August 18, 2009, 9:11am UTC](https://forum.kirupa.com/t/as3-bitmapdata-getpixel-need-help/294659/1 "2009-08-18T09:11:00Z")

</div>

been hard to find a tutorial for AS3 and this… i looked on here

[http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/](http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/)

but i can’t understand how to do it the way i need to…

i want to have a bitmap on my stage… and then when the mouse is clicked on it… it changes a MC to whatever colour it’s clicked on…

for example sake… say the bitmaps name is “tree” and the movieclip is “branch”

can anyone give me an example how i can do this???

i was told to use the ColorTransform… and it works with something else i tried… i just don’t know how to use the “getPixel” from a bitmap image on my stage…

thanks… 🙂
