Page 1 of 1

Save Changes Using Stack Player

Posted: Mon Jan 11, 2016 8:08 pm
by TerryL
A stack player may be useful distributing your stacks to those who don't want to install the LiveCode program, or to help convince them installing and learning to code with LiveCode might actually be fun.

Save changes to the stack being played with a closeStackRequest handler placed in its stack script.

on closeStackRequest --in stack script, File > Close, red "X" / close dot
answer "Save changes?" with "Cancel" or "OK" titled "Save Changes"
if it = "OK" then save this stack as (the effective fileName of this stack) --save changes
pass closeStackRequest --allow user to close/quit
end closeStackRequest

Here's an example of a stack that becomes a Stack Player when made into a desktop standalone. Instructions included.
StackPlayer.zip
(2.66 KiB) Downloaded 211 times
Below are more example stacks on my web page. Terry