I have a javascript for example

```
try { __flash__toXML(onYouTubePlayerReady("")) ; } catch (e) { "<undefined/>"; } .

```

In FireFox, Adobe plugin(Flash player plugin) executes above Java Script by calling `NPN_Evaluate` and `NPN_Evaluate()` returns result also. 

I am not getting how in IE, adobe flash player(ActiveX) executes the above and same JAVA script. But I am seeing a result in SetReturnValue() of IShockwaveFlash like `</undefined>`, `<string>3456</string>`. It looks like Adobe ActiveX is not using `IHTMLWindow2::execScript()` to execute JS.

I would like to know how to execute the JS code from ActiveX. 

I know how to call a JS function with the help of `IHTMLWindow2::execScript()`. But `IHTMLWindow2::execScript()` does not returns result. Also I know How to call a JS function with the help of `IDispatch()` interfaces.

I would like to know how Adobe ActiveX is executing the above code. I am also developing a similar ActiveX for IE and I would like to execute similar kind of JS(above one) from ActiveX.