property fileloc --file location
property loadtext --text displayed while loading
on beginsprite me
mymember = the member of sprite the spritenum of me
the text of member mymember = loadtext
mynet = getNetText (fileloc)
end
on exitframe me
if updated = false then
if netdone(mynet) then
the text of member mymember = netTextResult(mynet)
updated = true
end if
end if
end
on getPropertyDescriptionList me
set pdlist to [:]
addprop pdlist, #fileloc, [#comment:"text file location", #format:#string,#default:"http://myserver.com/text.txt"]
addprop pdlist, #loadtext, [#comment:"text to display while loading",#format:#string, #default:"Downloading, Please wait."]
return pdlist
end getPropertyDescriptionList
on getBehaviorDescription
return "Update a text cast member from a remote file on the internet." &return & return &"Created by Brent Moseley" & return & "brentmoseley@yahoo.com"
end
Contact
MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA