Page 1 of 1

navigating with visual effect

Posted: Tue Apr 29, 2014 11:20 am
by Rob van der Sloot
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

Re: navigating with visual effect

Posted: Tue Apr 29, 2014 11:26 am
by Klaus
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