// element - DOMHTMLElement that triggered this function being called
// event - event that triggered this function being called
Just use an event. You don't even need to be using the "setElementProperty". Just use multiple timelines and use the change innerHTML property.
So, if "button1" was pressed, the "event" variable is equal to "button1". Then the corresponding timeline could be played. You'd just have to do that 30 times, which is crazy tedious.
Alternatively, and depending on your project, you can create an array of 30 text values. So, the inner HTML could just be changed in a similar way. That is more complicated though.