content: ' entry point of main_scene
  sub Init()
      m.top.backgroundColor = "0x6f1bb1"
      m.top.backgroundUri = ""
      m.loadingIndicator = m.top.FindNode("loadingIndicator")
      m.loadingIndicator.visible = false
      InitScreenStack()
      'ShowGridScreen()
      'RunContentTask()
      ShowSideMenuScreen()
  end sub
  
  ' OnKeyEvent funciton receives remote control key events.
  function OnKeyEvent(key as String, press as Boolean) as Boolean
      result = false
      if press
          if key = "back"
              n = m.screenStack.Count()
              if n > 1
                  CloseScreen(invalid)
                  result = true
              end if
          end if
      end if
      return result
  end function
  