opencard and visual effect
Klaus major-k
klaus at major-k.de
Tue May 2 12:18:21 EDT 2023
Hi all,
> Am 02.05.2023 um 18:07 schrieb Klaus major-k via use-livecode <use-livecode at lists.runrev.com>:
>
> 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?
obviously there is a big difference by using:
----------------------------
lock screen for visual effect
go next
unlock screen...
----------------------------
And:
----------------------------
visual effect ...
go to next card
----------------------------
Using the latter I get this in the msg:
1683043997883
1683043998101
Not the full 300 millisecs difference as exspected by the effectrate, but more than in my first test.
Someone knowing please chime in! :-)
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