I have a question about what is better in terms of application design. Mainly relating to GUI handling.
What would be a preferred way for handling changing screens? I’ve been pretty solid on keeping things more into code than actually constructing stuff in the flash IDE. Mostly because I felt that it was a pretty practice to do this; but now I’m having some doubts.
I have 2 ideas on how to handle the GUI (changing screens, like from main menu, to playing field etc…).
-
Having separate methods in my GUI class for different screens and manually coding every element on that screen, clearing the screen by looping through and removing all objects on the display list when changing the screen.
-
Constructing the screens on the Flash IDE and storing them as MovieClips in the library then loading them through the GUI class.
What would be better?