Hi guys! Long time I didn’t post here, but I have few questions…

Hi guys! Long time I didn’t post here, but I have few questions…

1) in binding I animate a text (news) it move slowly from right to left when clicked. I’d like to animate a second text (music) when ‘news’ changing position.

So I wrote this in music’s binding , but doesn’t work :

$A==1200?(animate(‘$A’,3000,’ov’)+900) :1780 ;

(A is the variable name used to animated ‘news’)

2) I know it has been ask again and again, but (in case I missed smth 😬) still no possibility to use the animation (like in binding : ad, ov…) and the duration, with script?

Thanks a lot 😀

]]>

4 Commentsto Hi guys! Long time I didn’t post here, but I have few questions…

  1. Anonymous says:

    < ![CDATA[

    For 1 the behavior depends on the previous version of A, maybe the issue comes from here ? Try to use a second variable B independent from A.




    Basically animate is a script function. You can use it in any script but you have still to use use a variable to trigger the animation, and most importantly you need to repeatedly call it (using a setTimeout function) to use values. When used in bindings, the launcher takes care of re-evaluating the target as soon as possible for you, this isn’t possible to do that automatically for scripts yet. It might be possible to add another animate function with the following parameters: start value, end value, function to call, instead of the variable name.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    By the way I don’t remember the subject has been discussed earlier ? I opened a ticket here: http://www.lightninglauncher.com/flyspray/index.php?do=details&task_id=41

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Thanks a lot Pierre Hébert​ I’m not sure to understand everything for the script (noob…) 😁 but I’ll keep to try 😊

    ]]>

  4. Anonymous says:

    < ![CDATA[

    No problem, scripts and bindings are far from being easy toys…

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *