1 Reply Latest reply on Aug 25, 2014 12:19 PM by resdesign

    PNG button images mouseover not working

    magnix2k

      I have two PNG images (btnOFF.png and btnON.png).

       

      On the btnOFF I have sym.getSymbol("btnON").play("Over"); to display the btnON.png

       

      and I have

       

      sym.getSymbol("btnOFF").play("Out"); to turn off the btnON.png.

       

      That didnt work when I hit space to test it.

        • 1. Re: PNG button images mouseover not working
          resdesign Adobe Community Professional & MVP

          See if this sample can help:

          I have something similar for a music button and it works (see set up below). Code is as follows in compositionReady:

          sym.$('start').click(function(){

            sym.play();

            if (music.paused ) {

            music.play();

            sym.getSymbol('musicBtn').stop('on');

            } else {

            music.pause();

            sym.getSymbol('musicBtn').play('off');

            }

          });

           

          onoff.png

          1 person found this helpful