I'm creating the menu's/hud for a console game (using scaleform), and am looking for some advice in regards to the structure of the FLAs.
At present each FLA consists of a 1 main movieclip, which in turn consists of various substates in the timeline. When a state change is required, a gotoAndPlay is called moving the playhead of the main clip to the new framelabel and initializing the contents. Now this works ok, and allows designers to work with the FLA in a clear sequential manner. However because the 1 main movieclip contains all the substates, it causes an unnecessary memory spike when it is attached at runtime (as all the state contents are loaded).
I've been considering converting the structure to more of a viewstack - in which you have a current page, which gets attached at runtime, and which is unloaded and replaced when state changes are performed.
I recently purchased the corporate greensock licence, however I'm unfamiliar with the correct usage of TimeLineLite/Max. Would these tools be suitable, and useful in this viewstack based system? Would using TimelineLite support unique transitionOut animations for each state, and allow me to determine when the transition has finished playing? For example, the hud initialises with state 1. I then trigger state 2, which triggers the transitionOut for state1, then the transitionIn for state2.
Is TimeLineLite is better suited to playback a sequence of clips, rather than managing navigating between a statebased movie ?
Do you have any other recommendations for improving this structure? I'm using AS2.
I apologise if this post is convoluted. Any advice would be greatly appreciated!