Closing a stack vs. setting visible to false

J. Landman Gay jacque at hyperactivesw.com
Sat Dec 13 12:43:25 CST 2003


On 12/12/03 5:56 PM, Trevor DeVore wrote:

> I have a stack with some QuickTime players objects.  When closing and 
> reopening the stack the VRs in the players are reset to their default 
> view.  I can add code to reset this without too much trouble but I'm 
> wondering it is just easier to catch the closeStackRequest handler and 
> set the visible of the stack to false so the players aren't reloaded the 
> next time.  Is setting the visible to false pretty much the same as 
> having the stack closed but still in memory?  Are there any gotchas I 
> should be aware of?

Stacks that are closed do not receive messages. Stacks that are hidden 
are still considered "open" and do receive messages. This may not be a 
problem if the hidden stack is outside of the main message hierarchy.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list