LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
A script in a card in one stack (SuperExam) is supposed to take me to a particular card in another stack (Questions) and then move the stack (Questions) and another stack (Examinee Controls). What happens is that I get a white screen/blank card, then after a second or so, when the new card is drawn correctly, the two stacks show up already moved. (I want them to move afterward.) If I go to the same card as I was at last time, it works fine, but if I go to a different card I get the white screen. As you can see, there are no lock screen or lock messages involved. I've been trying for several days to work around this "white screen" problem, but I can't seem to solve it. Can anyone help me?
-- GO TO APPROPRIATE CARD
-- nextGoBack has been defined as a card name
hide stack "Questions"
go invisible cd nextGoBack of stack "Questions"
show stack "Questions"
hide stack "SuperExam Intro"
hide stack "SuperExam"
move stack "Examinee Controls" from 1115,525 to 985,525 in 20 ticks
move stack "Questions" from 840,525 to 710,525 in 20 ticks
move stack "Examinee Controls" from 985,525 to 1212,525 in 20 ticks
on foo1
-- GO TO APPROPRIATE CARD
-- nextGoBack has been defined as a card name
hide stack "Questions"
go invisible cd nextGoBack of stack "Questions"
send "foo2" to stack "Questions" in 0 millisecs
end foo1
on foo2
show me
hide stack "SuperExam Intro"
hide stack "SuperExam"
move stack "Examinee Controls" from 1115,525 to 985,525 in 20 ticks
move stack "Questions" from 840,525 to 710,525 in 20 ticks
move stack "Examinee Controls" from 985,525 to 1212,525 in 20 ticks
end foo2
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
I really appreciate your effort to solve my problem, but when I implemented your suggestion I got the same behavior that I had before — white screen for about 1 second, then correct card of other stack shows after the two-stack movement has (presumably) occurred. I put the "foo2" handler in the Questions stack script, and it received the send message, but there is no improvement. I also tried the send message without the "in 0 millisecs," but to no avail. Do you have any further suggestions for tweaking this handler, or another idea altogether? Do you know why this is happening? Thank you.
I'M VERY EXCITED. RIGHT AFTER THE LAST POST, I TRIED AGAIN, THIS TIME USING "5 MILLISECS" INSTEAD OF "0 MILLISECS." NOW IT WORKS BEAUTIFULLY. YOU WERE RIGHT WHEN YOU SAID "YOU MAY NEED TO EXPERMENT A LITTLE MORE." THANK YOU VERY MUCH.