5 Replies Latest reply on Nov 17, 2009 1:35 PM by peterent2

    Error #2148: Only local-with-filesystem and trusted local SWF files may access local resources

    peterent2 Adobe Employee

      I just tried to write my very first Flex 4 app. I have Flash Builder Beta 2 installed (plug-in version) running in Eclipse Ganymede. I created a very simple Flex application:

       

      <?xml version="1.0" encoding="utf-8"?>

      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"

         xmlns:s="library://ns.adobe.com/flex/spark"

         xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768">

      <fx:Declarations>

      <!-- Place non-visual elements (e.g., services, value objects) here -->

      </fx:Declarations>

      <s:Button x="32" y="23" label="First Button"/>

      </s:Application>

       

      As soon as I run it, I get the error above. I didn't change any of the compiler settings or do anything out of the ordinary as far as I know. I suppose I can add a compiler switch to fix this, but I would think that by running my app from within Flash Builder, it would be trusted automatically.