Consider this simple code:
__vp_mc = attachMovie(“vp_mc”, “vp_mc”,getNextHighestDepth());
__vp_mc._width = 30;
__vp_mc._height= 30;
__vp_mc._x = 15;
__vp_mc._y = 15;
Where vp_mc is a 1.0w x 1.0h square movie clip with single pixel line border, line scaling set to “none”.
I would expect the movieclip to nestle into the upperleft corner of the stage.
However, as the attachment shows, it is offset from the corner by about 7.5 pixels in both x and y.
The apparent reason is that the movieclip boundary is based on the line’s scaled size, not its unscaled size.
See the attachment for details.
Why is this happening, and what can I do to create a hit test region that easily scales?
Your help would be much appreciated.