private function init():void { //rect for bounding image within canvas _rect=new Rectangle(0,0,canvas.width,canvas.height); _manager.bounds=_rect; _fCrop = new FlexCrop(_imgC,_manager); _fCrop.configureCropMode(false,.5,0xAACCBB,true); _fCrop.addEventListener("enterCropMode",sCrop); } private function sCrop(e:Event):void { //_rect=_manager.getSelectionBounds(); //_rect for bounding crop within image component _rect=new Rectangle(_imgC.x,_imgC.y,_imgC.width*_imgC.scaleY,_imgC.height*_imgC.scaleY); _manager.lockRotation=true;//lock rotation of crop _manager.bounds=_rect; }
before rotation its working well crop is bounded with in image
After rotation img1
After rotation img2