I was thinking about the same but, as no one asked for it and adding it would break the current event blocks, I decided not to add it. Now since, you have requested to add IDs, I’ll consider adding it if more people want it.
Yes, I’m animating many things at once and I need to detect the animation at end time that which one is ended. So I thought the idea of ID for each animation would be great…
How about adding the component and animation technique as parameters in the animation events?
Users won’t have to worry about handling IDs if they can directly equate the components being animated
So, considering the poll results, I’ve added the ability to handle events with IDs, Component being animated and Technique used. But like I warned earlier, this update will break the previous blocks and you’ll need to manually replace every broken block. Blocks which are affected are:
Thank you, Shreyash, I got the idea. It now works great. I also added your extension into MIT App Inventor, it also works well.
However after I added the extension, it was renamed to be Any Phase with all the blocks renamed as well. Are these blocks different from yours. Or was it just a MIT conversion?
I did not say it clearly. Sorry. By using your blocks, it worked fine. But in MIT, when I imported the extension, it also created another extension by adding “any” in front of your extension. I just wanted to know why.
@Donald_Hwong they’re special components which let you access the properties/functions of any such component currently used in the screen, hence the name. I suggest you check out this blog: AITech - Using Procedures and Any component blocks, especially step 4.