저는 ActionScript 3.0을 사용하고 있으며 Transform 클래스를 제공하는 것을 이해하지 못합니다.Transform 클래스가 필요한 용도는 무엇입니까? (ActionScript)
import flash.geom.Matrix;
var mat1:Matrix = new Matrix();
mat1.identity();
mat1.rotate(Math.PI/4);
mat1.scale(2,2);
mat1.translate(10,20);
내가 함께 할 수있는 것들을 :
var shape:Shape = new Shape();
shape.x = 50; //the same as the translate tx
shape.y = 50; //the same as the translate ty
shape.rotation = 45; // the same as the rotate
shape.scaleX = 20; // the same as the scale X in Matrix object
shape.scaleY = 30; // the same as the scale Y in Matrix object
또는 질문은 : Matrix 객체 방법이나 모양 같은 일을, 무비 클립, 스프라이트 방법의 차이점은 무엇입니까? ? 나는 정말로 이것을 이해하지 못한다. 아마 뭔가를 놓친 것일까?
그리고 onEnterFrame 리스너가있는 경우 Matrix 객체 또는 MovieClip, Sprite, Shape을 사용하는 것이 더 좋습니다. x, y, 크기, 회전 속성을 변경하려면? 애니메이션의 경우 –