OK, you have to think in terms of a single 'point' coordinate, just a one pixel
position, based on one mc or point, although you could loop through the pixels
of a BitmapData object based on the circle, or use a perimiter calculation for
a circle, neither are particularly fast.
It looks above as though you are trying to place the circle into a square, or
you may be trying to use a shape based test to determine if the circle touches
the square at any point? This is different, and there are a few methods to do
two-shape hit testing, but there is not a native function in Flash to do so.
Look up Grant Skinner's collision detection class:
http://www.gskinner.com/blog/archives/2005/10/source_code_sha.html But there are other ways to accomplish similar things, depending on what your
try to achieve, if your looking to satisfy a condition when the circle is
completely within the square, you may be able to use getBounds() methods and
compare Max and Min properties.
Now there are a few things about you code that you should change to get it to
function. the x, y coordinates your using here are based on the registration
point of the square_mc, unless you centered the r-point, it will be in the
upper left corner. So it will only register a 'hit' when the edge of the
circle_mc comes in contact with that point.
OK so here's an example of a looping test. Since the second shape is a
square, you can simply loop through all of the pixel coordinates of the square,
to check the entire shape, although again, this is very slow processing and
there are better methods, but this is a simple one that will give you the idea.
here's the file:
http://www.beechstudios.com/shapeTest.zip