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

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -