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

    compositionReady function not working properly


      my code:




                var getPos = sym.getPosition();

                if (getPos==0){



                else if (getPos==3038){



                else if (getPos==3301){



                else if (getPos==6339){



                else if (getPos==6571){



                else if (getPos==10250){


                } 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?