Visual effect question
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 211
- Joined: Sun Oct 24, 2010 12:13 am
Visual effect question
I want to have three images on a screen dissolve at the same time, but they are not in a group.
In the Dictionary, I find the following:
lock screen
# Do something
unlock screen with visual effect wipe up to black with sound "doom.wav"
OK, so then I tried this:
on mouseUp
lock screen
hide image "object_1"
hide image "object_2"
hide image "object_3"
unlock screen with visual effect dissolve very slow
end mouseUp
The result is that the objects instantly disappear off the screen and there's no visual effect. I'm doing something wrong, but I don't know what. Does anyone have any ideas?
(I know I can put the objects in a group and apply the transition to the group, but I thought the above syntax would work...)
In the Dictionary, I find the following:
lock screen
# Do something
unlock screen with visual effect wipe up to black with sound "doom.wav"
OK, so then I tried this:
on mouseUp
lock screen
hide image "object_1"
hide image "object_2"
hide image "object_3"
unlock screen with visual effect dissolve very slow
end mouseUp
The result is that the objects instantly disappear off the screen and there's no visual effect. I'm doing something wrong, but I don't know what. Does anyone have any ideas?
(I know I can put the objects in a group and apply the transition to the group, but I thought the above syntax would work...)
Re: Visual effect question
Hi Richard,
looks like we really have to get used to the new syntax!
This works fine with LC >= 5:
Best
Klaus
looks like we really have to get used to the new syntax!

This works fine with LC >= 5:
Code: Select all
on mouseUp
## !
lock screen for visual effect
## !
if the visible of img "object_1" then
hide image "object_1"
hide image "object_2"
hide image "object_3"
else
show image "object_1"
show image "object_2"
show image "object_3"
end if
unlock screen with visual effect dissolve
end mouseUp
Klaus
-
- Livecode Opensource Backer
- Posts: 211
- Joined: Sun Oct 24, 2010 12:13 am
Re: Visual effect question
Thanks, Klaus! The new syntax makes sense. But... the old, incorrect syntax that I posted was from the Dictionary in LiveCode 5.0.2. Is the Dictionary not updated with new syntax when it changes?
Re: Visual effect question
Hi Richard,
Best
Klaus
it should be, but obviously isn't sometimesIs the Dictionary not updated with new syntax when it changes?

Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 10058
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Visual effect question
The Dictionary can be amended with user comments. While it would be ideal to have the main entry updated, in the meantime sharing a note there about the new syntax may be helpful.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Livecode Opensource Backer
- Posts: 211
- Joined: Sun Oct 24, 2010 12:13 am
Re: Visual effect question
That's a good point. So last night I created an account and submitted a user comment with details about the new syntax. Of course, now it has to be approved, but after that it will show up.FourthWorld wrote:The Dictionary can be amended with user comments. While it would be ideal to have the main entry updated, in the meantime sharing a note there about the new syntax may be helpful.
-
- Livecode Opensource Backer
- Posts: 211
- Joined: Sun Oct 24, 2010 12:13 am
Re: Visual effect question
Followup - I "added a note" back almost a month ago. Either it was never added, or my Dictionary does not update. Do you have to manually update the Dictionary?
-
- VIP Livecode Opensource Backer
- Posts: 10058
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Visual effect question
Thanks for adding your note to the Dictionary. Not sure why it hasn't shown up yet; may be a known issue with the comments feature that they're working on, but to make sure they're aware of it you may want to submit a report to support [at] runrev.com.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn