Today, I worked a bit on getting an alternative look for ObjectHandles working. See the blue border in the screen shot? Clicking the left, right, or bottom edge resizes, and the top bar moves it around. The corners resize as expected as well. This is s a decent compromise for when you want to have text inside a moveable object, and you still want to be able to select the text with the mouse.
Here’s how I did it.
First, I created some custom handle classes. I had three other versions, one for the corners, one for the bottom bar, and one for the vertical ones. (They probably could have been a single class with a bit of smarts to it)
The big difference between this and the normal handles, is that the size of the handles is dependent on the width/height of the model object, something I hadn’t tried before.
Next, I created a custom handle configuration to position them around the edges.
oh = new ObjectHandles( sprite , selectionManager);
And unfortunately, at this point I realized the ObjectHandles didn’t correctly rotate it’s handles, so everything went wacky when I rotated. So a bit of tinkering around in the core library and I got that fixed.
Besides the rotating handles change, I’ve also made the examples build under flex 3 again, and added a submitted patch that allows you to have an isLocked attribute on your model objects. When set that, you can’t drag or resize that object.