can't access local resource error

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default can't access local resource error

    hi,

    anyone know how to fix as3 runtime error 2148? i'm trying to load a png file
    on my dev machine, but keep getting this:

    "2148 SWF file _ cannot access local resource _. Only local-with-filesystem
    and trusted local SWF files may access local resources."

    the docs only list the error. no explanation (like most of their errors --
    sheesh!) of how to fix it or anything.

    how can i fix this??

    thnx to all
    lou
    p.s. using flex builder 3

    illuzioner Guest

  2. Similar Questions and Discussions

    1. error ' unable to get shading resource'
      Trying to replace in page in acrobat 8.0 professional and coming up with this message error message and not able to delete the replace the page ...
    2. Windows authentication with impersonation - network resource access fails
      Hi, I have a question regd. Windows authentication and network file access. My asp.net application doesn't use any of the .NET's authentication...
    3. How to allow my Web Application access a network resource?
      All, I have an ASP.NET application (with FormAuthentication but it shouldn't matter because I may allow unauthenticated user also). I want to...
    4. Sudden Acrobat Missing Resource Error
      I've been using Acrobat 6 on XP for several months. Suddenly, today, after working with form fields, it's giving me a very vague "A resource is...
    5. Resource ID #1 Error
      Can anyone explain why I get the above error with the following php file please <?php $xmlcontents =...
  3. #2

    Default Re: can't access local resource error

    You cannot access any local resources from a Flex app running under the Flash
    Player hosted in a browser. It is a security thing. No workarounds, well
    maybe, but very complicated.

    If you must access the local file system, you will have to run your app under
    AIR.

    Tracy

    ntsiii Guest

  4. #3

    Default Re: can't access local resource error

    Another note:
    Running an app under Flex Builder is deceiving because FB is installed into a
    trusted sandbox and can access most anything. (but not the local file system)

    Before you go too far, deploy your app to a web server and solve the security
    problems.

    Lets just execute the damn jerks that make this security crap necessary.

    Tracy

    ntsiii Guest

  5. #4

    Default Re: can't access local resource error

    actually i found a workaround.

    [url]http://curtismorley.com/2007/08/31/flash-cs3-flex-2-as3-error-2148/[/url]

    I added "-use-network=false" to my compiler options and now it works.

    although i agree that those "people" who make all this security crap necessary
    deserve a firing squad.

    lou


    illuzioner Guest

  6. #5

    Default Re: can't access local resource error

    I tried adding the "-use-network=false" in the compiler options but the same error occurs. Is there other ways to solve this issue?
    chinitovela Guest

  7. #6

    Unhappy Re: can't access local resource error

    "-use-network=false" will lead to a new error number. I tried everything and gave-up and accepted the fact "Flec cannot access local HD" . Now I am breaking my head in configuring linux server.
    Unregistered Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139