Share Posted July 10, 2013 I'm working on a project, using the TransformManager, and I need to fiddle with the pixel tolerance, for triggering the drag-function on a line on the bounding rectangle. Is there a function for this, like the: paddingForRotation(value:Number):void ?? I have been over the docs a few times, and can't seem to find a call to do this. Link to comment Share on other sites More sharing options...
Share Posted July 10, 2013 I don't quite understand the question - could you give a little more detail about what you're looking for? "padding on rotation" isn't clicking for me. Do you mean the distance beyond the corner handles that triggers the rotation interaction? Link to comment Share on other sites More sharing options...
Author Share Posted July 10, 2013 Sorry if my description was a little hard to understand. But yes ... I'm thinking about the distance from the lines, to trigger the drag-function, if the user holds down LMB. In the same way, as i can set the tolerance for rotation. _trans.paddingForRotation=64; Is there a way to set this in pixels for the lines? Link to comment Share on other sites More sharing options...
Share Posted July 10, 2013 No, that's not a parameter or property, but you can edit the source code to get the results you're after. The edge line is 10px thick and you can look in the renderSelection() method for this line: _edges.graphics.lineStyle(10, 0xFF0000, 0, false, "none"); 1 Link to comment Share on other sites More sharing options...
Author Share Posted July 10, 2013 Thanks for the help I just didn't want to screw around with the source, if there was a simple way to change it. Well .. I guess I'm not blind after all ... thanks. .. ill give the source a crack 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