Punch holes in a sprite?

Hi,

I would like to punch holes in a sprite, maybe using a mask?

http://teethgrinder.co.uk/open-flash-chart/gallery-data.php

I write the above code, if you take a look at the hollow dots, at the moment these are built as:

sprite with a line -> this has many children sprites that are the hollow dots (these have on click events etc.)

I fill the hollow dot with the background colour, but what I’d like to do is punch a hole through the parent sprite (the line) so the background would show through.

I’d like to do something similar for the solid dots - see the tiny halo each has? Can I somehow use the same ‘punch out’ to erase part of the parent sprite?

Any ideas?

Is there a way of doing:

set fill style to ‘cut out’
line_sprite.graphics.drawCircle( 10, 10, 10 );

then this would cut a bit out of the line? I tried setting the alpha to zero - but this won’t draw anything :frowning:

Thanks for any help :slight_smile:

monk.e.boy