I've been writing AS3 code for a few years now, and now I have the need to convert one of my projects over to Flex in order to support it better on an iPad. In AS3, every screen is represented by a class that creates all of the UI elements with code. My biggest problem with getting my head wrapped around Flex is what do I use to basically represent those classes in flex? I've read about containers and views, but most every example I've seen is written for it displaying with a tabbed or view based view on a smartphone. I don't need any of that, since my navigation from screen to screen will be controled by buttons in the UI. Can anyone give me some direction on what strategy I should be using and whether or not I use views, containers, etc.
I want to define my different screens in individual mxml files, but I do not want to use the TabbedViewNavigationApplication in the main mxml file. I just want it to use the <s:Application> tags. So how do I do this? How do I use individual mxml files to represent my different screens in this manner? The docs are all catered to mobile phones it seems.
First of all you needs to use <s:ViewNavigatorApplication> instead of the <s:Application>.
And the second thing is that you have to not use mxml instead use the spark component.