--- In [email protected], shaun <[EMAIL PROTECTED]> wrote: > > Amy wrote: > > A is the label, whereas a is the ID. The code hinting works, so I > > have no reason to suspect I've gotten that bit wrong. > > Ahh.. sorry my mistake. :) > > Well, from the original error message you provided it looked like your > button was null.. I imagine the easiest way would be to use the debugger > to inspect whats going on.
You were correct that the button object was null. I rebuilt the component and started with just changing the style, rather than changing the style in the init function, which ran when on dataChange. It seems that when the dataChange event fires, the button does not yet exist. So when I try to change a style on one of the buttons, everything blows up. What I wound up doing is setting a boolean variable on CreationComplete, and my init() function checks to see if that is true before trying to set the style. My creationComplete function also runs the same style setting function. Cludgy, but such is the world of item renderers. Thanks; Amy

