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

    SWFLoader issue

    Alex-Wright Level 1



      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]



      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?





        • 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?



          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>












            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,