Addon Does Not Load

Jan 6, 2010 at 11:51 PM

I am completely new to programming of any kind, but am a quick learner and decided I wanted to learn, figuring a small addon for WoW would be a good place to start.  I have been doing a lot of reading on creating addons, and found AddOn Studio.  I followed the tutorial and copied all the commands exactly, near as I can tell, and followed the directions to deploy the addon into the WoW directory.  When I log into WoW the addon does not load, and I cannot figure out why.

This is what my Lua and ToC files look like:

Lua

-- Create Date : 1/6/2010 2:56:48 PM


function Frame1_OnLoad()
    this:RegisterEvent ("PLAYER_TARGET_CHANGED");
end

function Frame1_OnEvent()
    if (event == "PLAYER_TARGET_CHANGED") then
        FontString1:SetText("Hello " .. UnitName("target") .. "!");
    end
end

function Button1_OnClick()
    Frame1:Hide();    
end

ToC

## Author: Aleena
## Interface: 30100
## Notes: Say Hello!
## Title: My First Addon
## Version: 1.0
Frame.xml
Frame.lua

Jan 7, 2010 at 12:00 AM

Ok, I figured it out.  I updated the Interface version to 30300, but now my frame is supposed to be moveable and I can't move it :(