Code: Select all
Bubbles = {}
Function Bubbles:ChangeText()
EndFunction
Function p_myfunc()
EndFunction
evt1 = { OnMouseUp = Bubbles:ChangeText(), OnMouseOver = Bubbles:ChangeText(),
OnRightMouseUp = p_myfunc }
evt2 = { OnMouseUp = Bubbles:ChangeText(), OnMouseOver = Bubbles:ChangeText(),
OnRightMouseUp = Bubbles:ChangeText() }
MakeButton(0, #SIMPLEBUTTON, 100, 100, 200, 200, evt1)
MakeButton(0, #SIMPLEBUTTON, 300, 300, 400, 400, evt2)
As you can see, First makebutton works fine, but when the second button is made, Hollywood reports an error of "Wrong usage/parameters for this command! Read the documentation!"
Only difference between these two is, that in First button i have used Bubbles:ChangeText() on all but one, and left one of them be p_myfunc (from Hollywood documentation example of makebutton command).
If I use Bubbles:ChangeText() on all of the options, then it fails.
Is this a bug, or expected behavior?