navigating with visual effect

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, asayd

Post Reply
Rob van der Sloot
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 78
Joined: Sat Apr 17, 2010 9:21 am

navigating with visual effect

Post by Rob van der Sloot » Tue Apr 29, 2014 11:20 am

In lesson 11, I have scripted navigation arrow buttons to go to next and previous cards.
This is done with visual effect, very simple. But if I click on the next or previous button after I clicked on previous or next button, the effect does not reverse. So if I clicked the previous button, I had a visual effect scroll left. If after that, I click the next button, I should get a visual effect scroll right, but that does not happen the first time, LC remembers somewhere scroll left, only the next time, the scroll right comes back.
What is wrong in this script?

previous button
on mouseUp
go previous card visual effect scroll left
end mouseUp

next button
on mouseUp
go next card visual effect scroll right
end mouseUp

Klaus
Posts: 13793
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: navigating with visual effect

Post by Klaus » Tue Apr 29, 2014 11:26 am

Dag Rob,

"visual effect" requires a (newer and correct 8)) syntax:
...
lock screen for visual effect
go next cd
unlock screen with visual effect scroll left
...
etc...


Best

Klaus

Post Reply

Return to “LiveCode University”