Jump to content
Search Community

Bharat Patel

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by Bharat Patel

  1. Hello,

     

    I am using crop feature, but facing one problem when user move the crop control, the control 's line and mask are not in sync (Refer attached image). 

     

    So is there any property or settings that need to apply on control. Refer the below code. 

     

    var manager:TransformManager = new TransformManager();
    manager.lockPosition = false;
    manager.lockRotation = false;
    manager.lockScale = false;
    
    
    var cropControl:FlexCrop = new FlexCrop( imageObj, manager, true);
    cropControl.configureCropMode(false, 0.5, 0xFFCC12, true);

    post-13261-0-73516200-1390555420_thumb.jpg

  2. By its very nature, scaling must change the selected object's x/y position unless its registration point happens to line up directly on the overall selection's origin. If you'd like things to scale from the selection's center, you can certainly set the TransformManager's scaleFromCenter property to true. Does that help?

     

    I tried the scaleFromCenter, it also update the object x/y position. In my case i am expecting scale should only perform with reference to top left point of transform.

     

    is there any option through which we can set top left point as registration point?

×
×
  • Create New...