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.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
xoceunder
Roku Guru

Problem with code

Problem with code

		dlg = CreateObject("roMessageDialog")
dlg.setTitle(tr("You have a message!"))
dlg.setText(json.msg)
dlg.addButton(1, tr("Accept"))
dlg.setMessagePort(createObject("roMessagePort"))
dlg.EnableBackButton(true)
dlg.show()

while true
msg = wait(0, dlg.getMessagePort())
if type(msg) = "roMessageDialogEvent"
              if msg.isButtonPressed()
                if msg.GetIndex() = 1
                   url = Url()+"/RokDev/mej.php"
                   post = "device="+device
                   body = read_body_and_headers(url,post)
      exit while
                end if
              end if
endif
end while

dlg.Close()


BRIGHTSCRIPT: WARNING: roMessageDialog: This component is deprecated:
0 Kudos
1 REPLY 1
destruk
Streaming Star

Re: Problem with code

If that is the only problem, then converting to scenegraph will be really easy for you.
Download this and implement it and you're done.
https://sdkdocs.roku.com/display/sdkdoc ... xample.zip
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.