Archive for November, 2009

Thanks Adam Robertson

Thursday, November 19th, 2009

Recently good friend Adam Robertson spent some time upgrading all my WordPress blogs to try and help combat the masses of spam and crap that were being hidden in the pages.

Many thanks Adam!

London Flash Platform User Group November 2009

Tuesday, November 17th, 2009

Huge thanks to both Eamonn Faherty and Richard Lord for their excellent presentations last month. As usual you can find the videos, presentations and source files in the presentations section.

First up this month creator of Paperworld3D, Trevor Burton with a session on the open source streaming server Red5 and up after him James Alliban who recently talked at Adobe Max, presenting a session of augemneted reality in Flash.

London Flash Platform User Group 26th November 2009 (26/11/2009)

Sponsored by friends of ED.

(more…)

DataStack

Friday, November 13th, 2009

A couple of weeks ago I made a post about using Repeaters in ViewStacks and I mentioned in the post I’d put together a class called DataStack that worked in the same way as a ViewStack but was driven by a dataProvider.

I then realized that using a Repeater inside a ViewStack would achieve the same result, but one thing I didn’t mention is that the DataStack re-uses its children like itemRenderers.

This means that if you only add one child to a DataStack, but supply a dataProvider with 1000 items, it will only create the one child and re-use it, unlike the Repeater and ViewStack combination which would create 1000 instances of the same child.

In addition recently I added a little more code so that you can add more than a single child to the DataStack and it will cycle through through them as you change the selectedIndex. So if you supply 2 different children and a dataProvider of 1000 items, it will reuse each child 500 times, the child at index 0 for all the data at the even indices, and the child at index 1 for all the data at the odd indices.

Due to the fact that DataStack isn’t a ViewStack (i.e. it extends Container not ViewStack), it won’t work with the Efflex viewStackEffects, and therefore I created a dataStack effect for Efflex and an example that extends it.

DataStack Example (right click for source).

The source for DataStack can be downloaded from our Google Code repository.