2 Replies Latest reply on Apr 15, 2010 4:51 AM by Alex-Wright

    SWFLoader issue

    Alex-Wright

      Hi,

       

      When loading and external .swf file, I get the following error:

       

      URIError: Error #1052: Invalid URI passed to decodeURI function.
          at global/decodeURI()
          at mx.controls::SWFLoader/OSToPlayerURI()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\ controls\SWFLoader.as:1938]

          ...etc....

       

      First and foremost - what does this mean exactly?

       

      Secondly, why would I be seeing this error in Flex 4 now, when the code used to work with Flex 3.5?

       

      Thanks,

       

        Alex.

        • 1. Re: SWFLoader issue
          CoreyRLucier Adobe Employee

          This method is new to 4.x I believe.

           

          The comments for OSToPlayerURI:

           

                

          • Currently (FP 10.x) the ActiveX player (Explorer on Windows) does not

                

          • handle encoded URIs containing UTF-8 on the local filesystem, but

                

          • it does handle those same URIs unencoded. The plug-in requires

                

          • encoded URIs.

           

          Can you send along the source URL you were using to load?

           

          -C

          1 person found this helpful
          • 2. Re: SWFLoader issue
            Alex-Wright Level 1

            Hi, thanks for your reply.

             

            Sure, the URL refers to an external swf file and the parameters sent to it, an example of which would be:

             

            http://<IP address and file structure omitted>/awv.swf

             

            The parameters passed to it look like this:

             

            ?awvByteHandlerPath=<IP address omitted>

            &awvImagePath=<Image path omitted>

            &awvWidth=1133&awvHeight=687

            &awvX=-0.34302108671969433

            &awvY=-0.39048279531074837

            &awvZoom=23%

            &awvToolbar=1

            &awvMenubar=0

            &awvNavWindow=0

            &awvNavWidth=150

            &awvNavHeight=100

            &awvSlider=1

             

            These are all comined together to make the url string. The paths are omitted for security.

             

            It's basically passing a very large image (~80000 x 60000 px) to the swf with specific parameters. The swf itself is a proprietary application and behaves much like zoomify.

             

            Not too clear on how to send the URIs unencoded. How would I do that?

             

            Thanks again,

             

              Alex.