External Javascript calls to smartgwt javascript methods

External Javascript calls to smartgwt javascript methods

GWT 2.0.4

In smartgwt we defined a javascript method
public static native void onMouseOverOS(String os) /-{
$wnd.alert("os: "+os);
}-
/;

We have a Flex component that makes the Javascript call onMouseOverOS.

If I define the Javascript method in the html the flex component can call it. However it can NOT see the javascript method that I define in my Smartgwt class. Having external Javascript calls interact with the Smartgwt calls is critical.

Any help with getting this to work will be greatly appriaciated. Thank you