Home > Flex, Flex 4, Spark, Uncategorized > Implementing IFocusManagerContainer

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
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 67 other followers