Thanks for the quick reply! Both the datalist and the score are global variables but i think the problem is to do with the 'name' and 'email' being typed into fields by the user and the score being carried on from before.
This is the code attached to the fields (I adapted it from a tutorial on the Internet so its possible it may be totally wrong!):
property pValidChars
property pDataField
property pMem,
global gDataList,
on getPropertyDescriptionList me
dataFieldsList = [#name, #emailAddress]
set pdlist to [:]
addprop pdlist, #pValidChars, [#comment:"Valid chars", #format:#string, #default:"abcdefghijklmnopqrstuvwxyz 0123456789 @."]
addprop pdlist, #pDataField, [#comment: "Which data?", #format:#symbol, #default: #firstname, #range: dataFieldsList]
return pdlist
end
on beginSprite me
pMem = sprite(me.spriteNum).member
pMem.text = ""
end
on keyDown me
if the key = BACKSPACE then
pass
else if pValidChars contains the key then
pass
end if
end
on storeData me
if voidP(gDataList) then
gDataList = [:]
end if
setaProp gDataList, pDataField, pMem.text,
end
i've tried adding gScore into various places but it just returns an error message.
At the moment when you click the 'submit' button you get
gDataList= [#name: "abcd", #EmailAddress: "abcd ", #score: "", <Void>: <Void>]
and as you can see it wont pick up the score!!
I've played games online where you can submit the score so it must be possible!!!!!