How to get a point from the object?

Good day everyone.

I want to get my custom point from the object using js code.
here is the custom point:

Here is the screenshot of the not working code:
image

I think that has something to do with SpriteAnimationFrame, but don’t know how to use it ?

getObjects("Canon")

This return a array of instance of your objet “Canon”, that’s why there is a S on getObjects.

For select just one instance you can use :
Xcanon[0] .getPoint("Spawn");

If you want get loop for all others object you need loop on each value living in Xcanon.