It's been a while since I have used LiveCode so I'm a bit rusty. I have made a custom property in my stack that is an array called activePorts. The appropriate element of this property is updated when a particular checkbox is checked in my user interface. Please refer to my stacks initialization code below:
Code: Select all
on openStack
//Initialize stacks custom properties
set the activePorts["A"] of me to false
set the activePorts["B"] of me to false
set the activePorts["C"] of me to false
set the activePorts["D"] of me to false
set the activePorts["E"] of me to false
set the activePorts["F"] of me to false
end openStack
Code: Select all
on mouseUp
put the activePorts of stack "Port Initialization" into thePorts
//other stuff here
end mouseUp
Code: Select all
put the activePorts["A"] of stack "Port Initialization" into thePorts
//thePorts = true when the Port A checkbox is checked, false otherwise
Thanks,
Tom