dcsimg
A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: Bug in MatrixTransformer breaks negative numbers

  1. #1
    Multitouch Aficionado
    Join Date
    Mar 2006
    Posts
    275

    Bug in MatrixTransformer breaks negative numbers

    Went bug-hunting today and confirmed that a glitch in my app is actually caused by a mathematical error in flash.motion.MatrixTransformer. Specifically, getScaleX and getScaleY only return positive numbers. Because setScaleX and setScaleY call their respective get methods first, setScaleY with a negative value will actually set a positive one if scaleY was already negative. So, sometimes setScaleY(-3) will result in scaleY == -3 and sometimes scaleY == 3.

    I have filed a bug with Adobe, along with a patched MatrixTransformer class. To get the repaired class or star the bug, follow this link:
    https://bugs.adobe.com/jira/browse/ASC-3413
    Last edited by illustratedlife; 06-02-2008 at 02:52 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center