views:

37

answers:

1

Hi guys, 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 :(

A: 

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.

alxx
can i draw Bitmap from cursor Class?
Shubham Goyal
You embed PNG, so it is image: var bitmap:Bitmap = new cursor as Bitmap;
alxx