Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
shagga

Scale & Rotate a TransformItem by clicking anywhere on it?

Recommended Posts

Hi there!

 

We purchased a license for your awesome TransformManager AS3, and now i am stuck with the following problem:

Is it possible to scale and rotate a TransformItem on the stage without using the handles directly but by clicking anywhere on the TransformItem?

 

I have some sort of "state controller", which allows me to allow only positioning, scaling or rotating of a TransformItem at one time.

I mean i want to be able to click ANYWHERE on the TransformItem and scale and or rotate it, according to the state in which the TransformManager is in at the time of the click. This works out of the box with the positioning, but scaling and rotating is only possible by using the handles on the outside corners of the TransformItem.

 

I hope i have made my problem clear, and that there is a way to accomplish this!

 

Thank you and best regards,

shagga

Link to comment
Share on other sites

Well, the AS3 version allows you to do pretty much everything via code, so it's not limited to user interaction driven changes. If you want to add some custom functionality, you certainly should be able to and then just use the scaleSelection() and/or rotateSelection() methods to accomplish what you're after. But no, TransformManager doesn't have any automated ways to accommodate scaling/rotating by clicking anywhere on the object(s). Sorry.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×