6 Replies Latest reply on Oct 8, 2013 10:24 AM by resdesign

    compositionReady function not working properly

    Littleone7

      my code:

       

       

      sym.$("technical").click(function(){

                var getPos = sym.getPosition();

                if (getPos==0){

                          sym.play();

                }

                else if (getPos==3038){

                          sym.stop();

                }

                else if (getPos==3301){

                          sym.stop();

                          }

                else if (getPos==6339){

                          sym.playReverse();

                          }

                else if (getPos==6571){

                          sym.playReverse("o2t");

                          }

                else if (getPos==10250){

                          sym.play("s2t");

                } else {

                //do nothing;

                }

       

       

      });

       

      which is in a compositionReady thing on the stage.

       

      The issue is when I test it in the browser or on the iPad when you tap or click it it needs you to click it twice before it works. I didn't want a double click event hence I used a click. Do you know why this is happening?

       

      thanks,

      Lizzie