Inserting Variables into a path

Hi guys,
having a bit of a problem, it’s so basic but my brain is struggling.

on (release) {
	thisid = "2";
	_root.i_icon(thisid).iconstates.gotoAndStop(1);
}

I’m not sure what I am doing wrong here, I just want to insert the variable defined on line 2 into the path, I have tried everything and nothing seems to work…any ideas would be much apreciated,
thanks