[flexcoders] AIR Application with multiple views

Tuesday, December 20, 2011

 

We have a pretty heavyweight AIR application. Now we are expanding our product and I need to deliver a lightweight version of our application depending on which user logs in. So depending on the user's permissions they could get the heavyweight application (current application) or a lightweight application (new application). The new lightweight application doesn't have any UI in common with the heavyweight one. It can use the same data model but the view is totally different. One is a fullscreen application and the other is going to be a small widget.

I'm contemplating the best way to handle this. Currently my main application MXML file is hosting the entire application. I am thinking about refactoring this so the primary MXML file is just a splash screen and login screen, and the actual "meat" of the application is moved to a separate window. That way I can open the appropriate window once I get the user's credentials. This will take some refactoring (for example, I can not longer rely on Application.application to get the root window, I will have to add some basic window management) but I think it's doable.

I just wanted to get some other opinions from people who have have had experience with something like this, to see if there is a better way to do it.

So, is there a better way to do it? :)

Thanks

__._,_.___
Recent Activity:
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___

0 comments:

Post a Comment