Answer the question
In order to leave comments, you need to log in
How to get the true dimensions of a rectangle?
There is a movie clip which, for example, is 100 by 100.
I change it and rotate it as I like.
But at
obj.width = // выдает размеры прямоугольника, определяющего границу объекта отображения.
obj.getRect(obj) = // выдает изначальные размеры тобишь 100
Answer the question
In order to leave comments, you need to log in
there is a variant to do something like:
var ndeg = obj.rotation;
obj.rotation = 0
var razmery = obj.getRect(this);
obj.rotation = ndeg;
something like:
var w: Number = obj.getRect(obj).width * obj.scaleX
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question