The rotation is dynamically applied with different angles while the user
clicks and drags the mouse button, would CSS still be suitable for that use
case?

On Mon, 3 Oct 2022 at 13:36, Kessler CTR Mark J via users <
[email protected]> wrote:

> One benefit of being the JS environment is the ability to assign external
> CSS which can also cover transforms.
>
> -Mark K
>
> -----Original Message-----
> From: CapitanoG76 <[email protected]>
> Sent: Sunday, October 2, 2022 19:32
> To: [email protected]
> Subject: [Non-DoD Source] UIComponent and transformation matrix
>
> Hello,
>
> I am porting a Flex application into Royale in order to transpile to
> Javascript.
>
> The application had some graphical elements which extended UIComponent and
> were added as children to an mx.containers.Canvas.
> I was using UIComponent.transform.matrix to rotate the elements, however
> in Royale UIComponent does not have the transform property anymore.
>
> Is there any way I can apply rotation/translation to my elements? I'd need
> to write code similar to
>
> var m:Matrix = new Matrix();
> m.rotate(angle);
> this.transform.matrix = m;
>
>
> Thanks,
> Marco
>

Reply via email to