User Guide
Matrix (flash.geom.Matrix) 773
deltaTransformPoint (Matrix.deltaTransformPoint
method)
public deltaTransformPoint(pt:Point) : Point
Given a point in the pretransform coordinate space, returns the coordinates of that point after
the transformation occurs. Unlike the standard transformation applied using the
transformPoint() method, the deltaTransformPoint() method's transformation does not
consider the translation parameters
tx and ty.
Availability: ActionScript 1.0; Flash Player 8
Parameters
pt:flash.geom.Point - A Point object.
Returns
flash.geom.Point - The new Point object.
Example
The following example uses the
deltaTransformPoint() method to create
deltaTransformedPoint from myPoint. In the example, the translate() method does not
alter the position of the point named
deltaTransformedPoint. However, the scale()
method does affect that point's position. It increases the point's
x value by a factor of three
from 50 to 150.
import flash.geom.Matrix;
import flash.geom.Point;
var myMatrix:Matrix = new Matrix();
trace(myMatrix); // (a=1, b=0, c=0, d=1, tx=0, ty=0)
myMatrix.translate(100, 0);
trace(myMatrix); // (a=1, b=0, c=0, d=1, tx=100, ty=0)
myMatrix.scale(3, 3);
trace(myMatrix); // (a=3, b=0, c=0, d=3, tx=300, ty=0)
var myPoint:Point = new Point(50,0);
trace(myPoint); // (50, 0)
var deltaTransformedPoint:Point = myMatrix.deltaTransformPoint(myPoint);
trace(deltaTransformedPoint); // (150, 0)
var pointMc_0:MovieClip = createRectangle(10, 10, 0xFF0000);
pointMc_0._x = myPoint.x;