addChild / removeChild oop best practice?
Hi there,
I wonder what is the best practice for Adding and Removing pages of a simple application in flash? (as3)
Lets say we have a small introduction app for a company, contains:
Main.as (main class)
Home.as (homepage)
About.as (about us)
Contact.as (contact us)
And user should simply be able to go back and forth in the app, showing and hiding pages.
Well, now who should be responsible for Adding and Removing of app pages, from library?
1- The main class of application?
2- A specific class just to Add / Remove pages?
3- Each class itself should have a public Birth() and Death() method? (Home / About / Contact)
Is there any sample application (i.e approved by Adobe) confirmed as the best practice oop design in as3, so that developers can use that as a best practice or guide?
Thanks a lot
