opencard and visual effect
Klaus major-k
klaus at major-k.de
Tue May 2 12:07:37 EDT 2023
Hi Håkan
> Am 02.05.2023 um 17:56 schrieb Håkan Liljegren via use-livecode <use-livecode at lists.runrev.com>:
>
> AFTER!
>
> Create two cards
> Add a button or something on the first card with the code
> on mouseUp
> visual effect dissolve slow
> go to next card
> end mouseUp
>
> On the second card add a control and the hide it and add the script to the card:
> on opencard
> show control 1
> end opencard
>
> You will then clearly see that the first card dissolves slowly and when the transition is done the control appears (no cross-dissolve)
> The preOpenCard is run before and the openCard is run after.
hm, not sure, I made a test here by myself.
Button to go to next cd with a visual effect:
...
put the millisecs
## go_next is in the stack script and goes to the next card:
## lock screen for visual effect
## set the effectrate to 300
## go next cd
## unlock screen with visual wipe left very slow
go_next
...
Then on the "next" cd I scripted:
-----------------------------------
on opencard
put the millisecs into tMillisecs
put CR & tMillisecs after msg
end opencard
-----------------------------------
And I ended with this in the msg:
1683043067873
1683043067877
Only 4 millisecs difference, but with the set effectrate the difference should be at least 300!?
So I guess "opencard" is already sent BEFORE the visual effect, at least according to the above data, right?
Molto mysterioso... :-)
Someone knows exactly?
> :-Håkan
>
>> On 2 May 2023, at 15:06, Klaus major-k via use-livecode <use-livecode at lists.runrev.com> wrote:
>>
>> Hi friends,
>>
>> quick question:
>> Will "opencard" be sent to a card AFTER the card was navigated to
>> with a visual effect or already during the effect?
>> I cannot tell actually in my stack.
Best
Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
klaus at major-k.de
More information about the use-livecode
mailing list