spheretoscreen returns NaN

  • So I have the following code in an action:

    Code
    trace(get(hotspot[%1].ath)); // returns the ath from the selected hotspot -> returns a value
    spheretoscreen(get(hotspot[%1].ath), get(hotspot[%1].atv), hotspotx, hotspoty); // goes fine
    trace(hotspotx); // NaN
    trace(hotspoty); // NaN

    What am I doing wrong here?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!