DirectButton bind error

I’m not entirely sure why it was done this way, I’d need to ask the original developer. I thought it would be easier to modify the program I’m working on based on what already existed, but now I think I might want to do some modifications for efficiency and extensibility. I’ll try modifying the event handler as suggested.

Your code works perfectly as a quick fix in the meantime though.
Thanks!