My application uses a series of graphical screens which are
quite similar except for the data and other properties. I'd
obviously like to use one component for them all. The components
are all in a ViewStack used for paging.
I understand how to do this, and how to create objects and
packages of Actionscript code, but how do I essentially combine the
In other words, half of this component is MXML code which
describes the stuff on the screen and the rest is the AS code that
contains the properties and the screen's logic. I know I can
reference the component in the viewstack as in
vsChild1.runMyFunction(). or assign properties such as
vsChild1.color = "red". But what's the best strategy to create and
keep this organized? What do you do?