I want to add an event listener to each word inside the textarea. Is this possible?
I have a function that shows a list of inventory items in a game I’m making. I put the list inside a textarea so that I can scroll through the inventory, but I want to be able to allow the user to click on each item.
For Example:
Potion
Antidote
Sword
Shield
blah
blah
blah
Is it possible to make this text clickable or will I have to make a custom scrollbar that scrolls clickable movieclips? Thank you in advance. :pleased:
edit:
Is there a way to access the index of each row within the textarea? This might be what I need.