Hereby I launch a little project I've been working on. The UIModifier is a Flex component to modify properties of a DisplayObject. It mimics the working of the modifier found in the Flash IDE. It can modify the width, height, x, y and rotation with a custom pivot point. It is not finished yet, but the basic functionality is ready.
Features:
- Every modification is broadcasted with a custom event containing all the new values.
- Rotation works with a custom pivot point, since flash doesn't supply the possiblity to modifiy the registration point I've emulated one with math (thanks to Nick Bilyk for it's pivot rotation class).
ToDo:
- Starting a rotation needs better Math to leave the current rotation in tact
- Scaling limit's (needs to obey movement's limits)
- Scaling modes like proportional needs implementing
- Much more
I've released the source code on google code here and as soon as I can figure out how to upload a release on google code i will release an swc there, for now:
Download UIModifier.0.0.1.zip
Download UIModifierExamples.0.0.1.zip
You can view a demo here.