Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

Get position of symbol on stage

$
0
0

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!


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>