I would look into using two modules loaded into the base application. Base application contains a login screen and based on results of login either load heavy weight module or load light weight module.
From: "osmanullah" <osman.ullah@gmail.com>
To: flexcoders@yahoogroups.com
Sent: Tuesday, December 20, 2011 10:41:46 AM
Subject: [flexcoders] AIR Application with multiple views
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
------------------------------------
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
flexcoders-digest@yahoogroups.com
flexcoders-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
flexcoders-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
Sincerely
Mark R. Jonkman
http://bitsbytesandsawdust.blogspot.com
Mark R. Jonkman
http://bitsbytesandsawdust.blogspot.com
From: "osmanullah" <osman.ullah@gmail.com>
To: flexcoders@yahoogroups.com
Sent: Tuesday, December 20, 2011 10:41:46 AM
Subject: [flexcoders] AIR Application with multiple views
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
------------------------------------
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
flexcoders-digest@yahoogroups.com
flexcoders-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
flexcoders-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
MARKETPLACE
.
__,_._,___
0 comments:
Post a Comment