Identify that object from another equal in sprite animation

In an animation of a repeating object, how do I identify that object from another equal? Example: I have an airplane that shoots a fireball. If I press once, a ball comes out. If I press again, another one comes out, but the animation is exactly the same and it starts moving with spriteObj: play (). If I wanted to stop the first ball with spriteObj: cancel (), how do I identify the first object?

Has something like this ever happened to you? Never had to interact with every instance of an animation?

You need to assign different handles to them.

If you have just a single local variable called spriteObj then it’ll just keep getting overwritten and you lose access to the previous fireball whenever a new one is created.

Thanks. I am going to try. I was assuming there was an API that solved that problem.