Sunday 20 February 2011

Flex, how to make the cursor handpoint


Make the mouse Handpoint over Image component
this technique, show the mouse point handpoint on images

public function Handle_SelectMag_MouseOver(event:MouseEvent):void {
Image(event.target.parent).buttonMode=true;
Image(event.target.parent).useHandCursor=true;
}
public function Handle_SelectMag_MouseOut(event:MouseEvent):void {
Image(event.target.parent).buttonMode=false;
Image(event.target.parent).useHandCursor=false;
}

in general...how to make handpoint on a visual component
--- make it handpoint (on mouseOver event)
buttonMode=true;
useHandCursor=true;

--- make it normal (on mouseOver event)
buttonMode=false;
useHandCursor=false;

No comments:

Post a Comment