Page 1 of 1
This should be simple
Posted: Fri Dec 12, 2014 4:03 am
by stjones
Very new to LiveCode here but have done a lot with HyperCard and SuoerCard, but it's been a while. Trying something that should be very simple. I have a stack (for iPhone 6). There are two cards: "splash" and "main_menu". I want the stack to launch, show the first card "splash" for 3 seconds and then go to card "main_menu". I have tried this script at both the stack and card levels:
Code: Select all
on openstack -- (or on opencard at the card level)
wait 5 seconds
go to card "main_menu"
end openstack -- (or end opencard at the card level)
Both ways the stack opens in the iOS Simulator, the "app" zooms open, the screen stays black for a few seconds, and then the SECOND card (main_menu) appears. I never see the first "splash" card. I have a test button on the "main_menu" card that simply takes me back to the first card. That button works fine - I can see the card "splash" then just fine. This should be ridiculously simple. What am I doing worng?
Re: This should be simple
Posted: Fri Dec 12, 2014 4:21 am
by sefrojones
For what it's worth, this script works as expected when deployed to android from LC 6.7. So the script theoretically should work the same way for iOS. Posting which OS version and LiveCode version you are using may be helpful as well...
Re: This should be simple
Posted: Fri Dec 12, 2014 4:23 am
by stjones
LiveCode Community Edition 7.0.0, Build 10018
iOS Simulator running as iPhone 6 and iOS 8.1
Re: This should be simple
Posted: Fri Dec 12, 2014 4:29 am
by sefrojones
Unless you *need* the new features included in LC 7(mainly unicode related), I'd say it might be worth a shot to download LC 6.7 and see if it works from that version.
http://downloads.livecode.com/livecode/
If that doesn't work, I'm sure someone else will be of more assistance.
Good Luck,
--Sefro
Re: This should be simple
Posted: Fri Dec 12, 2014 10:22 am
by Dixie
Make a stack with two cards... call them 'Splash' and 'Main..
In the card script of card 'Splash'...
Code: Select all
on opencard
send "goMain" to this stack in 5 seconds
end opencard
In the script of the stack...
Code: Select all
on goMain
go card "main"
end goMain
This works for me LC 7.0, iOS 8.1
Re: This should be simple
Posted: Sat Dec 13, 2014 12:18 am
by stjones
Thanks! That worked. Not sure why the original method didn't. I think it should have.