Simon,
Unfortunately, I'm still getting an error message with the code you suggested. Here's the code I using (it's in the stack script of a stack call "Splash" that has a substack called "CD"):
Code: Select all
on keyUp theKey
if theKey is space then
if the short name of this stack is "Splash" then
hide this stack
go to stack "CD"
else
lock screen for visual effect
go to card "window 2"
unlock screen with visual effect dissolve
end if
else if theKey is "p" then
-- [Other code here ]
--
--
else if theKey is "c" then
-- [Other code here ]
--
--
end if
end keyUp
The error message occurs on the "unlock screen" line and reads:
stack "Computer Daydreams": compilation error at line 19 (Expression: unquoted literal), char 35
Could the problem be that the script is in the main stack, but is calling for action in the substack? (Just a guess.)
Herman, the Dissolve special effect IS listed in the list of available special effects in the Dictionary for 7.1.1 (near the middle of the list).
Also, could someone explain the part of the suggested visual effect code that reads:
card "window 2"
What is this Window 2? I have been unable to find anything about it in the documentation.
Thanks for everyone's help.