I have DisplayObject where width=600px, height=600px, x=0, y=0. (X and Y begin in the left upper corner.) I know only 4 points’ coordinates. For example, these coordinates are (100,100) (100,-100) (300,500) (300,-500.)
I’d like to transform this into DisplayObject where the four coordinates are: (100,100) (100,-100) (300,500) (300,-500).
As you can see this transform is complicated. I can’t perform this using only “width”, “height”. How can I do it using AS3?
Based on the coordinates you mentioned, it sounds like you’re trying to stretch a rectangular image into a trapezoid. I’ve never used this image distortion class, but it sounds like it could help:
http://www.rubenswieringa.com/blog/distortimage