Flex Navigation Demo

Demo and Source (right-click):


A very simple navigation demo.

The crux is… Define your views at the root of the application. Then use a contextual class to update the root view a generic ‘goto’ function. This is done view the static Navi class, but could certainly be done using IoC or a Singleton type pattern. FYI, this is using states, but one could also use a viewstack (there is a flex 4 version somewhere around here)…

More presentation model pattern next.

Published by and tagged Code using 82 words.