views:

306

answers:

1

Right now I have a point that I have to update with the x and y of a display object to use with the hitTestPoint object; is there any way I can get a point from a display object without having to make a new point var and continually update its x and y?

+1  A: 

Try this:

// Your display object you want to get the position from
var something:DisplayObject; 

// Retrieve the position as a Point object
var position:Point = something.transform.pixelBounds.topLeft;
davr