Share Posted June 9, 2010 Hi, i trying to calculate the exact position of a transformed Text-Area, but when i draw my BitmapData with myTransformItem.targetObject, there will be drawn only the unscaled TextArea. Im looking for the first dark Pixel inside that Transform-Item, but i need the scaled TransformItem. How can i solve this? best Boris Link to comment Share on other sites More sharing options...
Share Posted June 9, 2010 That has nothing to do with TransformManager - it's just how Flash's BitmapData.draw() works. You need to read up on the matrix parameter of draw() if you want to maintain the transformations properly. Usually you need to use the object's transform.matrix value and make sure your BitmapData is sized appropriately. Link to comment Share on other sites More sharing options...
Author Share Posted June 10, 2010 thnks jack -i know solved that Problem when i use var m:Matrix = new Matrix(t.targetObject.transform.matrix.a, t.targetObject.transform.matrix.b, t.targetObject.transform.matrix.c, t.targetObject.transform.matrix.d, 0, 0); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now