How does focus works in Flex? -
i try figure out how focus mechanism work in flex. here comes example of mean: let's assume have simple web application, contains custom component extends canvas , implements mx.managers.ifocusmanagercomponent . component overrides focusinhandler , focusouthandler methods , shows feedback on how called (thinner or thicker border). custom component contains text . the source of component is: <mx:canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="100" height="100" creationcomplete="cc();" implements="mx.managers.ifocusmanagercomponent"> <mx:script> <![cdata[ import mx.containers.canvas; import mx.controls.text; import mx.controls.textarea; import mx.core.uicomponent; import mx.managers.ifocusmanagercomponent; public function cc():void { text = new text; text.text = "123"; addchild(text); ...