6 Replies Latest reply on Sep 10, 2007 8:33 AM by levancho

    Flex in a subdomain

    Lars.pehrsson
      Hi all
      We have a huge problem in running a flex application of ours in a subdomain.
      The original application runs perfect here

      http://www.softcapital.com/labs

      While the problematic one runs here:

      http://forex.softcapital.com

      Can you see the difference? :(

      So the problem is that application runs perfect in www.softcapital.com/labs and NOT in forex.softcapital.com
      We have tried crossdomain.xml with all kind of content the latest beeing "*" :

      <?xml version="1.0"?>
      <cross-domain-policy>
      <allow-access-from domain="*" to-ports="*" secure="false"/>
      </cross-domain-policy>


      Has anyone some good ideas to make this work in forex.softcapital.com

      Cheers,
      Lars
        • 1. Re: Flex in a subdomain
          batmitra
          hi
          1st- where are you calling your application from?

          2nd- the crossdomain file should be put on the root of your server so that all sub domains can access it
          • 2. Re: Flex in a subdomain
            Lars.pehrsson Level 1
            Hi Batmitra
            Thanks for your reply.
            I am not sure, that I understand you. forex.softcapital.com is pointing to another computer than softcapital.com, and we have placed the crossdomain file in the root.
            • 3. Re: Flex in a subdomain
              levancho Level 3
              you have not specified the exact problem?
              as I see you have two (identical or different ? ) flex apps running under different url-s?
              and you have problem loading services(http, rmi etc ?)?
              what urls do you use for services?
              • 4. Re: Flex in a subdomain
                Lars.pehrsson Level 1
                Levancho
                The specific problem. On the computer with forex.softcapital.com it is not possible to open the windows, and the subscription with stocks does not initiate.
                This works perfect on www.softcapital.com.
                And yes I have 100% alike flex apps running on those 2 computers, only difference is the URL and the Ip-adress.

                The flex apps uses a socket based protocol to the computer where it is installed to get the stock-quotes. So basically there are no calls for services on other domains/IP´s
                • 5. Flex in a subdomain
                  levancho Level 3
                  are you using debug version of FlashPlayer ?
                  because on your examples I get following exceptions :

                  VerifyError: Error #1107: The ABC data is corrupt, attempt to read out of bounds.
                  at Array$/Array::_sort()
                  at Array/ http://adobe.com/AS3/2006/builtin::sort()
                  at win.news::RSSManager/private::RSSReaderComplete()
                  at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
                  at flash.events::EventDispatcher/dispatchEvent()
                  at win.news::RSSProcessor/private::onLoaded()
                  at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
                  at flash.events::EventDispatcher/dispatchEvent()
                  at win.news::FeedLoader/private::processFeed()
                  at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
                  at flash.events::EventDispatcher/dispatchEvent()
                  at flash.net::URLLoader/flash.net:URLLoader::onComplete()
                  at [io]


                  and After a while another 2031 socket Error.:

                  Error #2044: Unhandled IOErrorEvent:. text=Error #2031: Socket Error.
                  at com.softcapital::SocketCommunication/private::init()
                  at com.softcapital::SocketCommunication()
                  at TestGrid4/private::connect()
                  at TestGrid4/onDelayTimer()
                  at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
                  at flash.utils::Timer/flash.utils:Timer::tick()

                  • 6. Flex in a subdomain
                    levancho Level 3
                    if there was a crossDomain voilation you would get a Security Exception.

                    now if we consult errorCode documentation for error 1107 it says :
                    ---------------
                    The ABC data is corrupt, attempt to read out of bounds. See the note at the bottom of this table.*
                    * Note: This error indicates that the ActionScript in the SWF is invalid. If you believe that the file has not been corrupted, please report the problem to Adobe.