Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
neowinston
Level 7

Why a ProgressDialog is not showing?

I'm trying to show a progress dialog, but it's not working. Here is the code that is in a .xml file and not in .brs file:


    sub showdialog()
      progressdialog = createObject("roSGNode", "ProgressDialog")
      progressdialog.backgroundUri = "pkg:/images/rsgde_dlg_bg_hd.9.png"
      progressdialog.title = "Buffering..."
      m.top.dialog = progressdialog
      m.timer = createObject("RoSGNode", "Timer")
      m.timer.duration = 3
      m.timer.control = "start"
      m.timer.ObserveField("fire", "dismissdialog")
    end sub



Any ideas why? Thanks for your help!
0 Kudos