Search code examples
javascripthtmlapache-flexactivex

Loading ActiveX object on Flex application html page


I am attempting to load an activex object on the same page where my flex application resides. Is this possible? Can I have 2 object tags on one page?

As of right now the flex application loads fine but when I attempt to access the activeX control it says its null. But if I have the same activex control on its own webpage it works perfectly fine.

Any Ideas?

Thanks in advance.


Solution

  • One of the issues was that my browser was caching the page, I realized that once I made a change to the name of the ActiveX object and the error thrown was still referencing the old name of the ActiveX object. The other error was I had a Var with the same name of the ActiveX object inside the javascript code, that seemed to be causing it to fail, although I am not entirely sure why. Once I removed that variable the script worked fine. I had run into that same problem the day before just didn't notice it the second time around, because I have been working on this integration for a few days straight now.