Search code examples
javascriptactionscriptactivexmxml

activex in actionscript


Is it possible to run an activex control in a MXML file using actionscript? Here's an equivalent of what I would like to do in Javascript

function getUserName(){
var s = new ActiveXObject("wscript.network");
return s.username;
}

-- Just a simple "hello world" example would be great. I can take it from there.


Solution

  • You can do it in javascript and then use ExternalInterface to communicate between your flash/flex app and your javascript functions.

    You can check documentation here : http://livedocs.adobe.com/flex/3/html/help.html?content=passingarguments_4.html