New to LiveCode. The docs suggest the following will dissolve in btn "guide" but I see no dissolve, it just appears. Can someone tell me what I am missing. (LC 5.5 on Lion)
on mouseup
lock screen
if the vis of btn "guide" then hide btn "guide"
else show btn "guide"
unlock screen with visual dissolve open very slowly
end mouseup
on mouseUp
lock screen for visual effect
if the visible of button "guide" is true then
set the visible of button "guide" to false
else
set the visible of button "guide" to true
end if
unlock screen with dissolve slow
end mouseUp
My documentation (dictionary) in LiveCode 5.5.1 for Mac OS X tells me this in the "visual effect" entry:
------
Summary:
Adds a visual effect trasition.
Examples:
visual effect dissolve
go next card
go next card with visual effect zoom close with sound "Cheers"
on mouseUp
hide me
show me with visual effect iris close slowly
end mouseUp
lock screen
# Do something
unlock screen with visual effect wipe up to black with sound "doom.wav"
----------
But when I try it, the first thing I notice is that LiveCode wants me to put quotes around the effectName--like "dissolve".
Then I find from this post that I have to use "lock screen for visual effect".
Is there a correct version of the LiveCode dictionary somewhere?
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
The documentation is correct as far as I know, and was updated recently for version 5.5.1. The missing piece you're looking for is in the entry for "lock screen", since that's the only time you need to use "for visual effect". A visual effect does not always require locking the screen, so the reference doesn't apply there.
The current documentation was revised recently and all reported omissions or errors were fixed. But if you do find something wrong please let us know and someone can report it. The team is very good about correcting reported omissions.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
Isn't it wrong in the Visual Effect entry that I quoted above? And what about not having quotes around the effectName in the dictionary? It throws an unquoted literal error.
I've never quoted visual effects. Actually, when I first started using MetaCard (LiveCode's precursor) I was told that quoting visual effects would cause an error, which was a hard habit to break after using HyperCard where they were required.
Can you post the line of code in your stack that fails? I've used unquoted visual effects for over 15 years in both desktop and mobile apps. I don't think I've ever used it with a sound though, could that be what causes the problem?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com