Multiple Music & Button State Issues

ctwllcctwllc Member, PRO Posts: 19

OK. So here's what I'm wanting to do...

2 rows each with 4 buttons. Each button has an up and down state. When the button is pressed it plays a looped audio file and also goes to the down state. If another button in that row is pressed, the first audio loop should stop and the the first button should go to up state while new button audio loop starts and button moves to down state. Each row of 4 buttons can only have 1 button playing at a time, but it should be possible for row 1 to play a loop at the same time a loop from row 2 is playing.

Thanks in advance.

Comments

  • SocksSocks London, UK.Member Posts: 12,822

    What does 'up state' and 'down state' mean ?

  • ctwllcctwllc Member, PRO Posts: 19

    @Socks basically, when the button hasn't been pushed it's in the 'up state' and when it has been pressed it switches to the 'down state' - so, not pressed in, then pressed in... two images.

  • SocksSocks London, UK.Member Posts: 12,822
    edited March 2015

    @jwhedon said:
    Socks basically, when the button hasn't been pushed it's in the 'up state' and when it has been pressed it switches to the 'down state' - so, not pressed in, then pressed in... two images.

    I see, you want the image on the button to change, that makes sense, it's probably best just to use plain English for these sorts of things, wanting something to enter an 'up state' could mean just about anything (I actually thought it might be an attribute that gets switched on or off). Attached is a quick example file.

  • ctwllcctwllc Member, PRO Posts: 19

    Awesome... thanks so much.

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,861

    Here is a file that shows one way to do radio buttons.

  • ctwllcctwllc Member, PRO Posts: 19

    Thanks @RThurman

Sign In or Register to comment.