Home AMX User Forum NetLinx Studio

TP4 QUESTION???

udiudi Posts: 107
I want to do a button that Flickering when I am in a specific page on the iPad like a video
I have some images and I want to display them one after the other and start over again
Can I do that with the TP4 or I need to do it on the netlinx? And how can I do it??

Comments

  • ericmedleyericmedley Posts: 4,177
    Probably the easiest way to do this is to create a multi-state button and then create a flasher to will toggle the state of the button on and off at regular intervals.

    I would do a timeline myself, but an easy way of making a flasher is:
    define_program
    
    wait 7
    {flasher=!flasher)
    

    then
    [dv_TP,101]=flasher && on_page_flag
    
    

    So, the variable 'flasher' will be on every 7 ticks and then off for seven ticks. and the variable 'on_page_flag' is set whenever the user is on the page your mentioned. Button 101 is the multi-state button with the animation you wish to play.

    There are much better ways to do this but this example is a simple way to show you the principle.
Sign In or Register to comment.