Showing posts with label flex focus compoent. Show all posts
Showing posts with label flex focus compoent. Show all posts

Wednesday, March 12, 2008

Removing Focus from any flex Component

Days are gone when we use _focusrect in flash to remove the ugly yellow focus from focussed movieclip/buttons. In flex we can remove focus from particular component by setting its focusalpha style to 0.

For example suppose you want to remove focus from TextArea component you can use:

mytextareainstance.setStyle("focusAlpha",0);

Hope this will help.