Yes, but the File System Access API is not available in all major browsers.
Safari and Firefox refuse to implement it, in its current form, for
security reasons.

--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>


On Thu, Feb 24, 2022 at 1:06 PM Edward Stangler <estang...@bradmark.com>
wrote:

>
> I would imagine File System Access API might have some of this covered:
>
>
> https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
>
>
>
> On 2/24/2022 2:42 PM, Josh Tynjala wrote:
> > You won't be able to emulate most of these Adobe AIR APIs using
> JavaScript
> > in a web browser because web browsers generally do not provide access to
> > the file system or the ability to launch native processes.
> >
> > It may be possible to emulate these APIs in an environment like Electron,
> > which runs as a native app, similar to AIR. However, I'm not sure that
> > anyone has tried to expose Electron APIs to Royale before, let alone
> write
> > wrapper code to emulate AIR's APIs with Electron's APIs. It would be very
> > tricky, I think. Electron has a very complex security model that involves
> > running two separate processes, called main and renderer, and
> communication
> > between the two requires a decent amount of boilerplate.
> >
> > By the way, I can't seem to load the images in your message, so I cannot
> > see the errors that you refer to. It might be better to copy and paste
> them
> > as text instead.
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev>
> >
> >
> > On Thu, Feb 24, 2022 at 12:21 PM Pashmina Kazi <pashminak...@gmail.com>
> > wrote:
> >
> >> Hi Everyone,
> >>
> >> Hope you all are doing well,
> >> I have a question from all of you if someone can help me i will be very
> >> thankful
> >>
> >> I am using some flash imports in my application like
> >> flash.filesystem.File;
> >> flash.filesystem.FileStream;
> >> flash.filesystem.FileMode;
> >> flash.system.Capabilities;
> >> flash.desktop.NativeProcess;
> >> flash.desktop.NativeProcessStartupInfo;
> >>
> >> I have created Classes for some of these api's in Apache Royale but
> there
> >> stubs are empty
> >> I want to use these flash API's in my application,someone told me that
> >> some of these API's are from AIR and playerglobal I have added
> >> airglobal.swc and playerglobal.swc into my build.xml and the
> application is
> >> compiled successfully
> >> I am using
> >> 1) File.createTempDirectory().parent.resolvePath
> >> 2) File.applicationDirectory.resolvePath
> >> 3) FileStream.open
> >> 4) FileStream.writeUTFBytes
> >> 5) FileStream.close
> >> 6) NativeProcess.isSupported
> >> and many more
> >> but when i launch my application there so many errors regarding flash
> >> [image: image.png]
> >> [image: image.png]
> >>
> >> Please help me
> >>
> >> Thanks and Regards,
> >> Pashmina
> >>
>
>

Reply via email to