coordinate-transformation

Get coordinates in parent, but not in stage.

I know about Flash's localToGlobal and globalToLocal methods to transform coordinates from the local system to the global system, but is there a way to achieve the intermediate? To transform coordinates from an arbitrary system to any other arbitrary system? I have a clickable object inside a Sprite, and the Sprite is a child of the sta...

2D coordinate normalization

I need to implement a function which normalizes coordinates. I define normalize as (please suggest a better term if Im wrong): Mapping entries of a data set from their natural range to values between 0 and 1. Now this was easy in one dimension: static List<float> Normalize(float[] nums) { float max = Max(nums); ...