Forum Discussion

spradhan7656's avatar
spradhan7656
Channel Surfer
11 months ago

Poster click interface alias and observerField() what i wirte

i have one poster if i click the ok what i write in the observerField and xml interface part alisa="" what i write 

4 Replies

  • I don't understand the problem. Can you please try and better explain what you're trying to do, and then what is not working? Give code examples as well.

    • spradhan7656's avatar
      spradhan7656
      Channel Surfer

      okk i create one it is the posterpage extends with group   <poster id="poster" height="278" widht="122" uri="pkg://images/poster_uri.png"> . if it is hasFocus()=true then i press ok then

      <interface>

      <field id="posterSelected" type="node" alias="poster. ?  ">

      <interface>

      in above alias ? what i write if press ok..

      another .brs file is posterlogic.brs

      sub init()

        m.posterpage=createObject("roSGNode","posterpage")

        m.posterpage.observerField("posterSelected","onPosterSelected")

      end sub

      function onPosterSelected()

        print "posterSelected"

      end function