# Fill rectangles that have been created by attaced lines

**URL:** <https://forum.kirupa.com/t/fill-rectangles-that-have-been-created-by-attaced-lines/172469>\
**Category:** Uncategorized\
**Created:** [December 14, 2005, 6:12pm UTC](https://forum.kirupa.com/t/fill-rectangles-that-have-been-created-by-attaced-lines/172469 "2005-12-14T18:12:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ditti](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@ditti](https://forum.kirupa.com/u/ditti)\
**Post date:** [December 14, 2005, 6:12pm UTC](https://forum.kirupa.com/t/fill-rectangles-that-have-been-created-by-attaced-lines/172469/1 "2005-12-14T18:12:09Z")

</div>

Hello!  
I have asked this question in [actionscript.org](http://actionscript.org), but didn´t get any answers. I hope I have more luck here in Kirupa.  
I have a fla wher you in a rectangle can put in columns and rows by clicking buttons. Now I want that if you click in one or the smaller rectangels created by the columns and rows, this rectangle shal be filled with a color. I also want to know how many of the rectangles are filled.  
The meaning is that the user shal visualize a fraction and the as shal be able to know if it´s right. Is this possible?  
I attach the fla.
