Re: how to save the game score on close card
Posted: Tue Dec 25, 2012 1:28 pm
Hi, Simon
i wrote that code to read a text and it works
but in graphic or image it doesn't work
please how can i let it works with an image
i wrote that code to read a text and it works
but in graphic or image it doesn't work
please how can i let it works with an image
Code: Select all
on saveTaskList
put specialFolderPath("documents") & "/ahmed.txt" into tFilePath
put field "name" of this stack into url ("file:" & tFilePath)
end saveTaskList
on readTaskList
put specialFolderPath("documents") & "/ahmed.txt" into tFilePath
set the cText of this stack to url ("file:" & tFilePath)
put the cText of this stack into field "name"
end readTaskList
on preOpenCard
readTaskList
end preOpenCard