Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
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..." = 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