Point belong to Sprite in Flex -
how can know if point contained inside of sprite in flex?
for example:
// example point var a:point = new point(5,5); // example sprite var s:sprite = new sprite(); s.graphics.linestyle(1,0x000000,1); s.graphics.moveto(0,0); s.graphics.lineto(100,100);
the point a
belong sprite s
because position inside of it. there function know it?
i want kind of sprites, use math formulas calculate linear or quadratic equations (line, circle, rectangle, etc) not valid me.
thanks in advance
you can use function hittestpoint(x, y)
on sprite
Comments
Post a Comment