the <Script file="luascript.lua"/> goes in the XML file before you add any <Frame .. tags etc.
self:CreateList wont exists unless the frame has a Mixin defined in lua, most likely in luascript.lua
luascript.lua
Code:
BenalishListSomethingFrameMixin = {}
function BenalishListSomethingFrameMixin:CreateList(total)
print(self:GetName(), "Let's create a list of", total, "Entries!")
end
XML
Code:
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd">
<Script file="luascript.lua"/>
<Frame name="BenalishListFrame", mixin="BenalishListSomethingFrameMixin", virtual="true">
<Scripts>
<OnLoad>
self:CreateList(total)
-- I don't know where total comes from? You might want to retrieve that in the CreateList function instead!
</OnLoad>
</Scripts>
</Frame>
</Ui>