-
Has anyone come across this?
Once an SWF is embedded in a C++/J++ or VB window, it can no longer handle HTTP requests or make any XMLSocket connections.
Even SWF Studio does not overcome this, and any compiled EXE cannot handle load variable requests from a remote location, or open a XML Socket.
It seems that this functionality is normally handled via the browser, or if stand-alone the flash player. Does anyone know what needs to be done in order to allow the SWF's to handle HTTP requests in a customised C++ window?
Would be grateful of any help on this.
Mike Carlisle
-
If anyones interested the solution is as follows:
In the C++ code the embed movie path should be prefixed by "file:///". For some reason this allows load variables and XML Socket connections to work!
Mike Carlisle
-
I never thought to try the file:/// prefix as a solution but it works beautifully. I just incorporated this change into SWF Studio :)
I think I can offer you a plausible explanation for why this solution works too...
I believe the problem was actually caused by a security restriction in the ActiveX control. This technote from Macromedia explains the details.
http://www.macromedia.com/support/fl...s_security.htm
If that's true, then the reason this works is that the file:/// tells the ActiveX control that the SWF is NOT running in a browser and that the requests are okay.