title: roUrlTransfer function not working in BrightScript
body: <p>I am creating my own channel for Roku. I need to get the streams of my videos and images from a JSON file on a server.</p>
  
  <p>Code in my SceneGraph .xml file:</p>
  
  <pre><code>&lt;![CDATA[sub init()
   data = CreateObject("roUrlTransfer")
   data.SetUrl(url)
   data.AsyncGetToString()
  end sub]]&gt;
  </code></pre>
  
  <p>This code is working fine in a <code>Task</code> node and the <code>main.brs</code> file, but in my .xml file it generates this error: <strong>"invalid BrightScript Component or interface reference"</strong>.</p>
  
  <p>Please help me with a solution.</p>