2 Replies Latest reply on Jan 31, 2012 3:06 AM by thisismyquestion

    Flex 4: SecurityError: Error #2148: In Linux

    CodesAndChaos

      So I just downloaded the Flex 4 SDK (flex_sdk_4.0.0.8615 - steaming hot off the press) and I compile a simple example:

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application name="Hello World"
              xmlns:fx="http://ns.adobe.com/mxml/2009"
              xmlns:mx="library://ns.adobe.com/flex/halo"
              xmlns:s="library://ns.adobe.com/flex/spark">

       

          <fx:Script>
              <![CDATA[

       

              ]]>
          </fx:Script>

       

      </s:Application>

       

      Compiling with:

       

      mxmlc HelloWorld.mxml -use-network=false

       

      When I try to view the compiled swf file with the standalone player ( found in flex_sdk_4.0.0.8615/runtimes/player/10/lnx directory), I get the following error:

       

      An ActionScript error has occurred:

      SecurityError: Error #2028: Local-with-filesystem SWF file file:///home/user/work/examples/HelloWorld.swf cannot access Internet URL http://fpdownload.adobe.com/pub/swz/flex/4.0.0.8615/textLayout_4.0.0.8615.swf.
          at flash.net::URLStream/load()

          at flash.net::URLLoader/load()
          at mx.core::CrossDomainRSLItem/load()
          at mx.core::CrossDomainRSLItem/loadFailover()
          at mx.core::CrossDomainRSLItem/itemErrorHandler()
          at flash.events::EventDispatcher/dispatchEventFunction()
          at flash.events::EventDispatcher/dispatchEvent()
          at flash.net::URLLoader/onComplete()

       

      Actually I'm kind of curious this is happening since the above example is not explicitly asking for any resources although apparently the application certainly is - it's asking for fpdownload.adobe.com/pub/swz/flex/4.0.0.8615/textLayout_4.0.0.8615.swf.

       

      Any help/advice/pointers/links would be most appreciated.