2 Replies Latest reply on Mar 8, 2009 8:38 AM by Gregory Lafrance

    Flex Application with WebService

    PetrKucera Level 1
      Hi,
      I'm beginner in flash/flex. I made application in Flex Builder with webservice. When I run this application from Flex Builder, all is O.K. When I take File->Export->Release build... I take *.swf file with *.html file and when I run this from other computer, all is O.K. till calling webservice via send method.
      Where is problem, please?

      Petr
        • 1. Re: Flex Application with WebService
          Level 7

          "PetrKucera" <webforumsuser@macromedia.com> wrote in message
          news:gosaun$4oe$1@forums.macromedia.com...
          > Hi,
          > I'm beginner in flash/flex. I made application in Flex Builder with
          > webservice. When I run this application from Flex Builder, all is O.K.
          > When I
          > take File->Export->Release build... I take *.swf file with *.html file and
          > when
          > I run this from other computer, all is O.K. till calling webservice via
          > send
          > method.
          > Where is problem, please?

          crossdomain.xml?


          • 2. Re: Flex Application with WebService
            Gregory Lafrance Level 6
            In general, Flex apps can only access web services from the same domain from which the Flex app was served. So even if the Flex app SWF was served from www.myCo.com, it cannot access data from www.myData.myCo.com.

            You can setup a crossdomain.xml file to allow access across your domains. Please see the FB3 help sys or Google LiveDocs.