Skip to main content
Participating Frequently
February 22, 2013
Question

Workers throw security error when using File class

  • February 22, 2013
  • 2 replies
  • 438 views

I am creating a program that is writing/reading large files using the FileStream class. This portion works fine but when I want to use concurrency to prevent the UI from locking it fails.  When I check inside Adobe Scout I can see the worker fires a secuirty error.

SecurityError: file

    at flash.filesystem::File$/getFile()

    at flash.filesystem::File$/get userDirectory()

    at Main/archiveFile()

    at Main/onMessageToArchiveWorker()

This topic has been closed for replies.

2 replies

chris.campbell
Legend
February 22, 2013

Could you please open a new bug report on this over at bugbase.adobe.com?  When adding the bug, please include sample code or an application so we can quickly test this out internally.  If you'd like to keep this private, feel free to email the attachment to me directly (ccampbel@adobe.com). 

Once added, please post back with the URL and I'll follow up internally.

Thanks,

Chris


Participating Frequently
February 25, 2013

Turns out this was my fault.  When you create a Worker if you pass "true" as the second parameter to the worker constructer then it is given application permissions.