Hi Andrew, I'm sorry I can't keep up with the great work you are doing. I only have time to day that I'm not sure there is only one typical MXML file structure. Basic Application will require more configuration than MX Application. Jewel and Express I think are somewhere in the middle.
My 2 cents, -Alex On 4/22/20, 11:27 AM, "Andrew Wetmore" <[email protected]> wrote: Ah, I forgot the valuesImpl section, which I presume appears before the intialView section. Does anything go in there that is not related to CSS? On Wed, Apr 22, 2020 at 2:13 PM Andrew Wetmore <[email protected]> wrote: > Hi, all. I am stepping through the tutorial on our website for building > your first application [1], to see if it is clear enough for someone who > does not already know how to do this. > > I am on the step that starts to build up the data model and use a service > call, and am wondering whether, before this, it would be useful to say > quickly what the typical layout of the main .mxml file in a Royale app is. > > Please correct me, but I believe the standard structure is: > > - .xml tag to indicate the version and the encoding, like UTF-8 > - open <application> tag with some declarations about namespaces, page > title, initial view, and so on > > -- <fx:script> area to hold imports from libraries, imports of > components, initialization of variables, and declaration of functions > > -- <fx declarations> area to hold things like effects, validators, > and formatters > > -- service call area to hold things like <https> calls to fetch or > send data > > -- <js:initialView> area to hold the visible components of the user > interface > > - closing <application> tag. > > > Am I missing something in that very-high-level outline? > > Andrew > > > [1] https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapache.github.io%2Froyale-docs%2Fcreate-an-application&data=02%7C01%7Caharui%40adobe.com%7C1f62d3361af44d483e9208d7e6eac880%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637231768373406540&sdata=J5dNLUrS253gajmjwEXgMp1LIJkYTwRbio6IXfWu1xI%3D&reserved=0 > > -- > Andrew Wetmore > Technical Writer-Editor > Infra > *Apache Software Foundation* > [email protected] > -- Andrew Wetmore Technical Writer-Editor Infra *Apache Software Foundation* [email protected]
