0
votes

following is my flex 3 code.

[Embed(source="SizeNESW.png")] [Bindable] public var cursor:Class;

private function mouseOver():void { CursorManager.setCursor(cursor); }

here what i am doing that there are four corners above the image for resizing purpose. and i have a single image for cursor. i want to use that image for all corners of the image. i.e i need to rotate that cursor image for different corners.

ne help i m stuck :(

1
So what's the problem? You don't know how to rotate, or your cursor doesn't show up?alxx
the rotation property is not working.Shubham Goyal
what i was thinking that before setting value to setCursor function i did rotate cursor by 90 degree as cursor.rotation = 90; but its not working. :(Shubham Goyal

1 Answers

0
votes

Try to create four copies of rotated image with BitmapData.draw (using rotated matrix). Note that CursorManager.setCursor returns int - you'll need it to remove custom cursor.