This content has been marked as final. Show 3 replies
I've just discovered this topic/issue, and am having the same problem. Did anyone make any more progress on this?
I had a look at your file, and I noticed:
// unfortunately this don't work
for (var objProps in passedObj)
ember("infoText").text += objProps;
First, I think what you're trying (getting info on the object properties) might only work in lingo.
--put a break point in here, and inspect the objects
member("infoText").text = "label property: " & eventObj.target.label
member("infoText").text = member("infoText").text & RETURN & "toggle property: " & eventObj.target.toggle
Second, I was playing with this, and discovered through the function's (undocumented) arguments array that the third argument is the event object which is another place to test for variables. An event object has a 'type' property (in this case "click"), and a 'target' property which is the button. Hope this helps!