Bharat Patel
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Bharat Patel
-
-
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);
-
I understand the challenge with TransformManager. I will handle it directly over element and after that
_transformManager.updateSelection()
With the alternate option will achieve my goal.
Thank for response.
-
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?
-
Hi,I am using 'selectionScaleX' & 'selectionScaleY' property to scale selected image.
_transformManager.selectionScaleX = 0.5
_transformManager.selectionScaleY = 0.5However it change the image x and y position.Is is possible to scale selected image object without changing image position?Thank YouRegards,Bharat
Crop operation
in TransformManager (Flash)
Posted
Hi Jack,
Don't spend time for above issue, now its working fine with following change:
var cropControl:FlexCrop = new FlexCrop(cropImageObj, flxTransformManagerObj.manager, true);
Thanks
Bharat