Hi Alex,
Just got back to this.
This is what I think is happening, please correct me if I'm wrong.
"-The top tag is instantiated.
-Attributes in the top tag are applied by MXMLDataInterpreter during
constructor time.
-fx:Script variables are initialized.
-top tag is added to display list"
Then "-the rest of the data structure is processed by MXMLDataInterpreter"
But the crucial thing is that the items in initialView are processed first.
So every part of everything in initialView is set up and only then is
applicationComplete called that allows the remainder of Main.mxml to get set
up.
I'm not sure how to make the fx:Declarations in Main get set up first, as by
the time initialization begins, the items in fx:Declarations are already in
the this scope of Application and there doesn't appear to be any way to work
out that originally they were defined in an fx:Declarations tag.
I'm still thinking it might be sufficient to move most of the stuff out of
Main.mxml into a View0 and just leave the Views in initialView and the
replacement for the ViewStack controller in the Script in Main.
Not sure which way to go.
Doug
--
Sent from: http://apache-royale-users.20374.n8.nabble.com/