My addons (because I just tend to copy each one from the last) still use the 'old fashioned' approach of creating a frame in the .XML file and registering events there
e.g.
Code:
<Script file="OBI.lua"/>
<Frame name="OBI" visible="true" parent="UIParent">
<Scripts>
<OnLoad>
this:RegisterEvent("PLAYER_LOGIN");
</OnLoad>
<OnEvent>
if event == "PLAYER_LOGIN" then
OBI_variablesloaded()
end;
</OnEvent>
<OnUpdate>
OBI_update();
</OnUpdate>
</Scripts>
</Frame>
Could this be part of the issue? Should I ditch the .XML files entirely (all my UI elements are created dynamically in the .LUA file)???