Nope it does not work as it is now.
I mean maybe they are being read but the actual button does not change it only changes it state.
I can't imagine optimal solution when action bar changes. Typically it would be this event:
ACTIONBAR_PAGE_CHANGED
Basically I want a solution where I can highlight a spell by spell name
Right now i am keeping a reference to a button in table:
Lua Code:
tinsert(TDButton_Spells[actionName], button);
Because each spell can have multiple buttons. But it does not work well with rogue stealth and generally when action bar changes page.