Revlet - how to get back to the main stack from a substack?

John Dixon dixonja at hotmail.co.uk
Wed Mar 23 12:32:43 EDT 2011


Keith...

I made a stack 'main' with sub-stack 'sub'
placed a button on each stack...

In the button on stack 'main'...

on mouseUp
   go stack "sub" in the window of stack "main"
end mouseUp

In the button on stack 'sub'

on mouseUp
   go stack "main" in the window of stack "sub"
end mouseUp

Then made the stack into a revlet... it will then allow you to navigate between the stacks.

John Dixon

> OK, it seems that within a revlet, navigation from main stack to substack and between substacks works fine using...
> 
> on mouseUp
>     go to stack "<another substack>" in the window of this stack
> end mouseUp
> 
> Getting back to the main stack as the revlet's 'home page' seems more difficult (at least, I can't solve it). 
> 
> So, it looks like the work-around is to make the main stack an introductory splash screen with a 'click-to-enter' control and have the 'home' page as just another substack.

> > I'm using 'go to stack "substack" in the window of me' to navigate to substacks in a revlet but can't seem to find a suitable script for a 'close' button on the substack to return to the main stack. The following lines are ignored:
> > 
> > 'go to stack "<main-stack>" in the window of me'
> > 'go to stack "<main-stack>"'
> > 'go back'
> > 
> > So, what's the secret formula? ;-)
> > Best,
> > Keith..   
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
 		 	   		  


More information about the Use-livecode mailing list