12 Replies Latest reply on Jun 19, 2014 7:35 AM by resdesign

    Get position of symbol on stage

    illustrate_this Level 1

      Hi,

       

      I am trying to create a drag and drop game. For this i need to know the position of the drop areas so i can 'snap' the dropped items to the drop symbol (drop_1) position.

       

      Ive tried using this code but it only returns 0,0 which i assume is its local position, not its world position on the stage?

       

      sym.getSymbol('drop_1').getSymbolElement().position()

       

       

      Can anyone point me in the right direction please?

       

      Thanks for your help!