public
Description: Behavior Injection for Flex - a jQuery-like behavior injection framework for flex
Home | Edit | New

BehaviorMap

A behavior map listens for new components being added to the display tree, then runs a set of selectors to see if they match it. It will pick up any selectors inside it.

As best practice, define your behavior map as a separate file and include it in the view you want.

See Examples

Properties

target IEventDispatcher The view instance you want to listen on. The behavior map will only catch components somewhere inside of your target. This is set automatically by flex if you use your behavior map in mxml.

Examples

<BehaviorMap>
  <Selector ... />
  <Selector ... />
</BehaviorMap>
<mx:Application>
  <me:MyBehaviorMap/>
</mx:Application>
Last edited by seanhess, Wed May 20 10:49:25 -0700 2009
Home | Edit | New
Versions: