string formatting for flex tooltip
===

I am working on an existing project wherein there is tool tip functionality. The functionality has been implemented statically with arrangements using blank spaces. I need to build it in such a way so that it works well with any length of string. The tooltip should look like below, say for two parameters:-

Parameter              Type               Dimension
   x                   int                   2
   y                   float                 1

I have been reading and trying to use mx.formatters.Formatter. Also got to know about StringUtils.substitute(args......) but I am unable to produce the results. The parameter, type and dimension has to be present only once and parameters may vary. Was thinking of having datagrid for formatting. Please let me know any good way of doing it. I will be working on this and try to update the post. Also, I would be happy to answer any questions if I could not properly state my problem. I m using Flex 3 and this is in my *.as file. I fetch the data using Java web service.

Thanks !!!