//Called when application is started. function OnStart() { app.LoadScript("aboutdlg.js") lay = app.CreateLayout( "Linear", "VCenter,FillXY" ); btn = app.CreateButton( "About", 0.3, 0.1, "Alum" ); btn.SetOnTouch(CreateAboutDlg); lay.AddChild( btn ); app.AddLayout( lay ); } function CreateAboutDlg() { var txt = app.ReadFile("about.html"); DlgAbout = new AboutDialog(txt, -1, -1, "#ff222222"); DlgAbout.Show(); }