TouchPhase.ENDED: // Allow cancelling by moving the touch out of the target var location : Point = touch.getLocation(_sprCard); if (hitTest(location, true)) { trace("selected"); } break; } } } ``` That wouldn't work if _sprCard is not at 0,0 ... (offseted)


Solutions on the web1

Solution icon of github
via GitHub by fred1024
, 9 months ago
// Allow cancelling by moving the touch out of the target var location : Point = touch.getLocation(_sprCard); if (hitTest(location, true)) { trace("selected"); } break; } } } ``` That wouldn't work if _sprCard is not at 0,0 ... (offseted)

Stack trace

TouchPhase.ENDED: // Allow cancelling by moving the touch out of the target
                var location : Point = touch.getLocation(_sprCard);
                if (hitTest(location, true)) {
                    trace("selected");
                }
                break;
        }
    }
}
```

That wouldn't work if _sprCard is not at 0,0 ... (offseted)
	at touch.getLocation(_sprCard)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.