Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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