You probably created a control called FMI in your .xml file. After the xml file is loaded the global variable FMI will refer to the control instead of the table you defined in your lua file. The control does not have a showWindow function, hence the error.
|