Implementing IFocusManagerContainer
Further to my post yesterday http://kgaffney.wordpress.com/2011/07/07/scroller-null-focusmanager-exception/ on using a component that implements a IFocusManagerContainer interface, today I went and implemented that interface in my the original Flex component I wanted to extend. After a quick google, the required code was:
private var _defaultButton:IFlexDisplayObject;
public function FocusEnabledGroupPopup(){
super();
}
public function get defaultButton():IFlexDisplayObject{
return _defaultButton;
}
public function set defaultButton(value:IFlexDisplayObject):void{
_defaultButton = value;
ContainerGlobals.focusedContainer = null;
}
Which I got from: http://sharathchandra.net/?tag=ifocusmanagercontainer
Categories: Flex, Flex 4, Spark, Uncategorized
