30849913 Posted October 31, 2014 Report Share Posted October 31, 2014 i have the same problem Anyone can help? Link to comment Share on other sites More sharing options...
SWFlash0 Posted October 31, 2014 Report Share Posted October 31, 2014 Sorry for a late reply, but have you tried reading the SDK?var rt = window.external.mxGetRuntime() var browser = rt.create("mx.browser") var returnedvalue = browser.executeScript("mytools(\""+tool+"\")")Because executeScript() function is basically an eval you'll have to dynamically insert the strings/objects for arguments that gets passed to the mytools() function in the page (I assumed tool variable was a string for this example). The returnedvalue variable will contain the function's return value Link to comment Share on other sites More sharing options...
Recommended Posts