Pb Webservice Flash8

Ask a Question related to Macromedia Flash Data Integration, Design and Development.

  1. #1

    Default Pb Webservice Flash8

    Hello everyone!

    first pls excuse my english...

    I'm trying to get data from a webservice placed on an other server, parse the
    data and display it in a datagrid.
    I'm using the WebServiceConnector component.
    I placed a crossdomain.xml on the remote server, allowing my domain
    (<allow-access-from domain="*.mydomain.corp" secure="false" />)

    Everything works fine within Flash. (Ctrl+Enter)
    Data is recovered, parsed and diplayed propoerly.

    But when i try somewhere else, it doesn't work at all.
    (local swf, local html, nor in http on mydomain)

    I placed dynamic txt fields to trace the status of the webserviceconnector,
    throught a listener on "status" event.
    I have of course an other listener for "result" event, which launches parsing
    and display.

    Within Flash, i see the "status" changing from
    "StatusChange" {callsInProgress:1}
    to
    "StatusChange" {callsInProgress:0}
    and then, the "result" event is triggered.

    But when trying online, the "status" stays on
    "StatusChange" {callsInProgress:1}
    and the "result" event is never triggered.

    Looking on the httpheaders of the page, i can see the webservice is called
    with success (Method:GET Result:200, Type text.xml;charset=utf-8).

    I though it was a security issue, so in my html, i set
    <param name="allowScriptAccess" value="always" />

    And in my flash, i put:
    System.security.allowDomain("*");
    System.security.allowInsecureDomain("*");


    And still, i can't access the data...
    Any idea ?

    Thanks thanks thanks



    okpoubelle Guest

  2. Similar Questions and Discussions

    1. flash8
      flashplayer keeps closing me down when playing games even after installing again. any solutions?
    2. Interesting Flash8.ocx Problem
      Hello, I'm working on Multiplayer Board game which is developing on Flash Communication Server. At the developing stages, i'm checking in...
    3. Flash8.ocx does not work in VS2005 C#
      Title: Flash8.ocx does not work in VS2005 C# Product Versions: MS .NET Framework Version 2.0.50727 MSVS2005 Version 8.0.50727.42 Macromedia Flash...
    4. Flash8 and VB6
      hi, I'm trying to use ExternalInterface for calling one function in Visual Basic 6. My flash name is film.swf I saw that VB6 intercepts tha...
    5. flash8.ocx problem
      When installing macromedia flash player 8 i keep getting the error "Error 1904. Module C:\Windows\System32\Macromed\Flash\Flash8.ocx failed to...
  3. #2

    Default Pb Webservice Flash8

    Hello everyone!

    first pls excuse my english...

    I'm trying to get data from a webservice placed on an other server, parse the
    data and display it in a datagrid.
    I'm using the WebServiceConnector component.
    I placed a crossdomain.xml on the remote server, allowing my domain
    (<allow-access-from domain="*.mydomain.corp" secure="false" />)

    Everything works fine within Flash. (Ctrl+Enter)
    Data is recovered, parsed and diplayed propoerly.

    But when i try somewhere else, it doesn't work at all.
    (local swf, local html, nor in http on mydomain)

    I placed dynamic txt fields to trace the status of the webserviceconnector,
    throught a listener on "status" event.
    I have of course an other listener for "result" event, which launches parsing
    and display.

    Within Flash, i see the "status" changing from
    "StatusChange" {callsInProgress:1}
    to
    "StatusChange" {callsInProgress:0}
    and then, the "result" event is triggered.

    But when trying online, the "status" stays on
    "StatusChange" {callsInProgress:1}
    and the "result" event is never triggered.

    Looking on the httpheaders of the page, i can see the webservice is called
    with success (Method:GET Result:200, Type text.xml;charset=utf-8).

    I though it was a security issue, so in my html, i set
    <param name="allowScriptAccess" value="always" />

    And in my flash, i put:
    System.security.allowDomain("*");
    System.security.allowInsecureDomain("*");


    And still, i can't access the data...
    Any idea ?

    Thanks thanks thanks



    okpoubelle Guest

  4. #3

    Default Re: Pb Webservice Flash8

    Oops double post... Can someone delete one of them ?
    Thanks
    okpoubelle Guest

  5. #4

    Default Re: Pb Webservice Flash8

    Maybe a clue:
    if, somewhere in the animation I do an
    myWebSConnector.trigger();

    I see "StatusChange" {callsInProgress:1} changing to "StatusChange"
    {callsInProgress:0}.
    But nothing appears (the event "result"is not triggered).

    okpoubelle Guest

  6. #5

    Default Re: Pb Webservice Flash8

    There are some changes in security layer in Flash Player ... to resolve this
    problem, read this articles:
    [url]http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html[/url]
    [url]http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html[/url]

    Or simply use this cross domain file (crossdomain.xml) ... if you have no time
    to read all specifications :-)
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM
    "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">

    <cross-domain-policy>
    <site-control permitted-cross-domain-policies="all"/>
    <allow-access-from domain="*" secure="false"/>
    <allow-http-request-headers-from domain="*" headers="*" secure="false"/>
    </cross-domain-policy>


    [url]http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.htmlhttp://ww[/url]
    w.adobe.com/devnet/articles/crossdomain_policy_file_spec.html

    JardaBar Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139