简体   繁体   中英

Set Custom Mouse Cursor in flex

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. ie i need to rotate that cursor image for different corners.

ne help im stuck :(

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM