Substack
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Substack
Hi, I am creating a Spot the Difference game for my school project and I'm wondering is it possible to go from the main stack to substacks via buttons? For example, on the main stack there is a play button which when clicked, would go to a specific substack and so on. Thank you
Re: Substack
Hi Akatz,
you already said it:
Best
Klaus
you already said it:
Code: Select all
on mouseup
go stack "name of substack"
end mouseup

Best
Klaus
Re: Substack
Hi Akatz,
check this "must see":
http://www.runrev.com/developers/lesson ... nferences/
And welcome to the forum!
Best
Klaus
check this "must see":
http://www.runrev.com/developers/lesson ... nferences/
And welcome to the forum!

Best
Klaus
-
- Posts: 55
- Joined: Sat Sep 10, 2011 12:22 pm
Re: Substack
Just a point about opening and closing substacks.
I found that the substack needs to be closed properly when used in a standalone, because in my experience they continue to run in memory when the main application is ended.
I noticed this during development, there were many copies of the substack name in taskmanager and I found they needed to be terminated properly to get rid of them.
I found that the substack needs to be closed properly when used in a standalone, because in my experience they continue to run in memory when the main application is ended.
I noticed this during development, there were many copies of the substack name in taskmanager and I found they needed to be terminated properly to get rid of them.
Re: Substack
That's good to know. I usually just 'go' to another stack.
So how do you close them properly?
So how do you close them properly?
Re: Substack
If you set the destroyStack property of a stack or substack to true then it will be removed from memory when the stack is closed. Otherwise it will stay in memory until you explicitly remove it. There's an option in LC preferences to do this for you automatically when you make a new stack/substack.
Also, if you have things like open sockets that you haven't closed, the stack will stay in memory until the open processes have been terminated properly.
Also, if you have things like open sockets that you haven't closed, the stack will stay in memory until the open processes have been terminated properly.
-
- Posts: 55
- Joined: Sat Sep 10, 2011 12:22 pm
Re: Substack
on closecard --This being the main stack card
close stack "Scratchpad" -- This being the substack
end closecard
close stack "Scratchpad" -- This being the substack
end closecard