i cant make it work on my xml and i don't know why !
i added lines
Code:
<OnLoad> self:RegisterEvent("PLAYER_ENTERING_WORLD"); </OnLoad>
<OnEvent> print("Hello World! Hello " .. event); </OnEvent>
in scripts tag (taken from wowwiki sample)
Code:
<Ui>
<Frame name="FooAddonFrame">
<Scripts>
<OnLoad> self:RegisterEvent("PLAYER_ENTERING_WORLD"); </OnLoad>
<OnEvent> print("Hello World! Hello " .. event); </OnEvent>
</Scripts>
</Frame>
</Ui>
is it because that my xml is not foo (whatever it is)?
or maybe <Script file="Frame.lua" /> tag?