Demo and Source (right-click):
http://wookets.com/code/flex/NaviDemo/FlexNaviDemo.html
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.
0 comments:
Post a Comment