A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: EXE http / socket problems

  1. #1
    Senior Member
    Join Date
    Jun 2001
    Posts
    136
    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

  2. #2
    Senior Member
    Join Date
    Jun 2001
    Posts
    136
    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


  3. #3
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,764

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center