Accessing a non-display list parent object

Hi,

I need to access a non-display list top-level (Parent? Ancestor? What’s the correct term?) object from a display list object, and I don’t know how.

In my code, ResultX is an instance of my custom class Result. Card is a sprite, a visual representation of the ResultX object, defined inside the Result class and attached (or removed) to the stage via a separate function inside the result class as needed.

I want to refer to the correct Result object when the user clicks on the corresponding card to call a function there. In accessing the sprite manually, ResultX.card works fine, but I don’t know how to go upwards trough the path - card.parent (or actually target.parent, since it’s done via event) just returns Main, of course.

Thank you very much in advance!