2 Replies Latest reply on May 9, 2013 9:57 AM by FlexAce

    JQuery Child Element Reference

    FlexAce Level 1

      I'm trying to animate an image

       

      If the image is on the stage, this works fine

              sym.$("theImage").animate({"top": '-=150px'}, 1000, "easeOutBounce");

       

       

      But I am having trouble trying to get to that image when it is inside a symbol on the stage

      I tried both of these, but neither works

       

              sym.$("mySymbol").children("theImage").animate({"top": '-=150px'}, 1000, "easeOutBounce");

              sym.$("mySymbol > theImage").animate({"top": '-=150px'}, 1000, "easeOutBounce");

       

       

      What simple thing am I missing?

       

       

      Thanks

      Mathias