1 Reply Latest reply: Sep 10, 2012 3:34 PM by robert.kwon RSS

    [Concurrency] SecurityError when attempting to access a file from a worker

    thejustinwalsh Community Member

      I was working on encrypting some files in a worker using AIR, when I ran into this strange error...

       

      SecurityError #0 - file

      at FileWorker/onChannelMessage()[/Users/axon/Projects/Flash/WorkerFile/src/FileWorker.as:32]

                at flash.system::MessageChannel/internalAddEventListener()

                at flash.system::MessageChannel/addEventListener()

       

      This error triggers when simply placing some code to create a File class instance from a path in my background worker.

       

      Here is an awesome example of my issue: WorkerFile.zip

      It's a Flash Builder 4.6 project

       

      What I would like to know, is how do i open a file from a background worker? I didn't spot it on the not allowed list with the release notes, so I am baffled at this point.

       

      Any and all help is appreciated!

       

      Update: Filed a bug with bugbase.adobe.com