Tag: Flex 3

  • Flex Cairngorm – Interacting with a Command, through an Event

    Cairngorm is a lightweight micro-architecture framework for Rich Internet Applications built in Flex or AIR, defining best-practices for a RIA. Read More

    When a Cairngorm command requires parameters to call the required delegate, a common (bad) practice is to fetch parameters from View Components / Calculate or Query from inside the Cairngorm Command, and end up writing complicated / un-understandable code inside Command files, when a Cairngorm event is being dispatched from > 1 AS files.

    But isn’t all this going against the very purpose of using the Cairngorm architecture?
    Why not have parameters passed to a Cairngorm Event every time its dispatched, and stay away from mixing C with M and V in a MVC Framework?

    This post explains how you pass parameters to a Cairngorm command at runtime, via a Cairngorm Event.
    (more…)

  • Flex – Paginated Datagrid

    Here is a small component i wrote for implementing a paginated Datagrid on flex.
    This component extends dataGrid, displaying only a set of records at a time, thereby organizing the entire collection into ‘pages’.
    This component arranges the collection specified under the ‘dataProvider’ attribute into ‘pages’.

    • Displays a footer at the bottom
    • Indicates currently displayed records
    • 2 navigation buttons (Previous, Next)

    (more…)