iOS - closeCard, going back to main stack and visual effects when using a substack

Chris Sheffield cmsheffield at me.com
Fri Aug 17 12:00:30 EDT 2012


Tom,

The only way I've found to get visual effects to work when moving from stack to stack is to do something like this:

visual effect "push left"
go cd 1 of stack "Substack One"
close stack "MainStack"

I know it seems odd, but it's the only way I've found to make it work reliably. Give it a try. The trick was to close the stack that I'm coming from. It doesn't seem like this should be necessary...

As for the problem with closeCard not firing, I'm not really sure what the problem would be unless there's some sort of error occurring in that handler that's preventing it from completing.

Good luck!

Chris


--
Chris Sheffield
Read Naturally, Inc.
www.readnaturally.com



On Aug 16, 2012, at 3:48 PM, Thomas McGrath III <3mcgrath at comcast.net> wrote:

> I am attempting to use a splash screen stack and load several substacks and am running into a problem where the closeCard and OpenCard are not being received when switching to them from other substacks. Is anyone else seeing something like this???
> 
> I have:
> 
> SplashScreen
> 	Substack One
> 	Substack Two
> 	Substack Three
> 
> In Substack One I load an mergMK external that creates a map and when I go from there to card 1 of substack Two the closeCard handler in Substack One does not fire. It should delete the map created in Substack One by accessing the closeCard before moving on to Substack Two. This does work when The Substack One is a main stack and I am going from card to card.
> 
> Also, I can not go back to the SplashScreen stack from any of the Substacks using the go command. Is anyone seeing this???
> 
> Also, the lock screen for visual effect does not honor the "push left" effect when going from substack to substack. Is anyone seeing this???
> 
> on mouseUp
>   lock screen for visual effect in rect (the rect of this card)
>   go card 1 of stack "Map.livecode"
>   unlock screen with visual effect "push left"
> end mouseUp
> 
> 
> Any help or feedback is greatly appreciated. If these do not work then I need to rethink my entire approach.
> 
> Thanks
> 
> Thomas J McGrath III
> 3mcgrath at comcast.net
> 
> Lazy River Software
> http://lazyriver.on-rev.com
> 
> 
> 
> 
> 
> _______________________________________________
> 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