@d-healey OK I managed to do it :)
I needed a local variable to get the IDs of the component being used and an if statement to compare that number with the counter:
inline function changeFreq0(component, value)
{
local idx = freq.indexOf(component);
for (i = 0; i <= 13; i++)
{
if (i == idx)
EQ[i].setAttribute(EQ[i].Freq, value);
}
}
Thanks a lot for the support David :)