Forum Discussion

Solisive's avatar
Solisive
Visitor
13 years ago

RoUrlTransfer Question

Brightscript throws the following error message when the code below executes. This is code taken from samples for Async url calls)
"Member function not found in Brightscript component or interface"


request = CreateObject("roUrlTransfer")
port = CreateObject("roMessagePort")
request.SetMessagePort(port)
request.SetUrl(url)

3 Replies

  • You need to use SetPort instead of SetMessagePort. I know that the Streaming Player Component Reference defines a SetMessagePort member of roUrlTransfer, but I think that is a mistake in the documentation.
  • "belltown" wrote:
    You need to use SetPort instead of SetMessagePort. I know that the Streaming Player Component Reference defines a SetMessagePort member of roUrlTransfer, but I think that is a mistake in the documentation.


    Super - That did it.
  • "belltown" wrote:
    You need to use SetPort instead of SetMessagePort. I know that the Streaming Player Component Reference defines a SetMessagePort member of roUrlTransfer, but I think that is a mistake in the documentation.

    I believe they added SetMessagePort to all interfaces that used SetPort in the past, for consistency, but those changes didn't make it into the 3.x firmware.