Global Variables
on launched theObject
set prefPaneNibLoaded to false
global prefsLocation
global prefsFile
global monsters
global animals
global maxplayers
global pvp
global spawnprotection
set prefsLocation to ""
set prefsFile to ""
set monsters to ""
set animals to ""
set maxplayers to ""
set pvp to ""
set spawnprotection to ""
end launched
and the startup one is here
on clicked theObject
tell button "prefAnimals" of window 1
if animals is "true" then
set animals to "false"
else
set animals to "true"
end if
end tell
end clicked
These are in different windows, called by different objects. Anything i'm doing wrong? It just gives me a
The variable animals is not defined. (-2753)2007 iMac, Mac OS X (10.5.8)