Flex - HTML like AnchorManager

Tags: , , ,

This class allows you to embed anchors into your application much like in HTML.  It allows you to anchor to a dynamic point or UIComponent within a container.  Since you construct the anchor manager you can dynamically create managers for many different containers across the application.  You can also pass in whether to animate the scrolling, where to anchor (nearest edge, top, middle, or bottom), duration, and the easing algorithm to use.  You can also add events to the anchorManager that will tell you when it is scrolling, and when the scrolling has finished.

The example I've posted HERE shows all of these features, try to click on the button that you're anchored to to dynamically move it around.  The manager will know this and anchor to the new position the next time.

I've also posted the source and the sample application HERE.

Flex - Removing scroll arrows from Flex ScrollBars through CSS

Tags: , ,

This will result in just a scroll bar and no arrows if you add this in a css that you import into your application.  If done in this way, it will globally affect your application.

ScrollBar {
 
      upArrowSkin: ClassReference(null);
      downArrowSkin: ClassReference(null);   
 
}

Flex - Data Bindable ComboBox

TAGS: None

This component lets you dynamically bind to selected data properties of a ComboBox. This is something you would generally use if you have a ComboBox that grabs a stored value from the server at app startup. Below is how you'd bind into a model to make the ComboBox work. This also extends from ComboBox, so every method and property youre use to on ComboBox exists on this component

<component:ADComboBox id="comboBox" dataProvider="{model.dataProvider}" labelField="label" dataField="data" selectedDataFieldValue="{model.selectedDataField}" change="{model.selectedDataField = comboBox.selectedValue.data}"></component:ADComboBox>

You can view and download the source HERE.

If you have any questions of comments please post them below