1

I'm following allong the example of the "plugins and parsers" pdf
(found here: using plugins and parsers technote (PDF) )

How do i access user variables (read, write) in the processEvent function?

Function pizza_ProcessEvent(event As Object)
  if type(event) = "roAssociativeArray" then
    if type(event["EventType"]) = "roString" then
      if event["EventType"] = "SEND_PLUGIN_MESSAGE" then
        if event["PluginName"] = "Pizza" then
          pluginMessage$ = event["PluginMessage"]
          print "received pluginMessage ";pluginMessage$
          return true
        endif
      endif
    endif 
  endif
  return false
End Function
4

1 回答 1

1

它们应该在 中m,这是self/的 BrS 等价物this

即,当为 PizzaBuilder 的实例调用pb方法(或事件;实际上 pb.processEvent()是“成员函数”)时,其中一个魔术变量m指向pb. 所以你要求的 - 基于 PDF 样本 - 可能是m.userVariables

免责声明:我知道 Roku 的 B/S,而不是 BrightSign;它们密切相关。

于 2014-04-25T17:09:18.387 回答