You can use
function or
method attributes to refer to a Lua function.
This calls
MyFrame_OnLoad() from the global environment.
Code:
<Scripts>
<OnLoad function="MyFrame_OnLoad"/>
<Scripts>
This calls
:OnLoad() from the frame's table. Useful for calling functions from inherited mixins.
Code:
<Scripts>
<OnLoad method="OnLoad"/>
<Scripts>
For more information on handler tags, see
WoWPedia: XML/Scripts.
PS: <Backdrop> tags are depreciated and no longer work. You need to inherit
BackdropTemplate and call
:SetBackdrop() with your
custom backdrop.