Archive for July, 2011

CoverflowLayout

Friday, July 22nd, 2011

Here’s a coverflow navigator layout for spark.

It supports virtual layout by either…

  • 1. Set the the numUnselectedElements property which defines how many elements are shown either side or the selected element.
  • 2. If numUnselectedElements has a value less than 0, the selected element is used to calculate the number of elements required to fill rectangle defined by the unscaledWidth and unscaledHeight. Note: this calculation uses the bounds of the selected element, and therefore if your elements are different sizes this could prove to be incorrect.
  • Below is an example with a NavigatorGroup (bindable to a ButtonBar) and List (items can be selected by clicking on them), and some controls to edit the properties of the layout.

    (more…)

    London Flash Platform User Group July 2011

    Wednesday, July 20th, 2011

    Huge thanks to David Kinross, Andrew Skinner & Tadhg McCarthy for the great talks last month. Both videos can be found in the presentations section.

    This month Andre Fabris with a session on the ‘BlackBerry PlayBook Development Roadmap’ and following him, Tom Davies with a session on ‘Entity Systems – A Better Way to Develop Games’.

    London Flash Platform User Group 28th July 2011 (28/07/2011).

    Sponsored by friends of ED & hosted by glueisobar.

    MenuBar

    Friday, July 15th, 2011

    Here’s a MenuBar component for spark that takes an IList as a dataProvider (this can be a hierarchical list to build the menu).

    The selectedIndices, selectedItems methods have been overridden so that they return the hierarchical selection, so for instance if you if selectedIndices has a value of 1,2,4 it means that at the root level, the second item has been selected (starts at 0), the third item within this has been selected and the fifth item within this has been selected.

    It has a selectedLabels getter (i’ll add a setter very soon) that will return the labels of the selected hierarchical items. These strings can be used to show a breadcrumb trail

    It has 2 other properties worth nothing. allowBranchSelection defines whether a branch can be selected, or whether only leaf nodes can cause selection to take place and closeOnSelection which defines whether the menu should close after a selection has been made.

    (more…)