martinheidegger / as3-commons

Automatically exported from code.google.com/p/as3-commons
0 stars 0 forks source link

[Feature Request] #132

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Could be really nice to have Async SWFFileIO.read and SWFFileIO.write!

Original issue reported on code.google.com by dmitry....@gmail.com on 14 Oct 2012 at 1:56

GoogleCodeExporter commented 8 years ago
Since the new Flashplayer is supporting worker threads I don't think I'm going 
to implement any kind of green threading. I suggest you just create a 
workerthread and do the read and writing in them.

Original comment by ihatelivelyids on 14 Oct 2012 at 2:57

GoogleCodeExporter commented 8 years ago
Yeah, I see, maybe someday Workers will be usable enough to allow their usage, 
now they are too buggy and uncomfortable to use (even simple AIR File API usage 
throws the Security error while trying to read file from child worker).

Anyway, it's ok, I understand your point.

Original comment by dmitry....@gmail.com on 14 Oct 2012 at 3:02

GoogleCodeExporter commented 8 years ago
I haven't really tried out the Workers yet, so I can't really comment.

Have you checked out this little as3swf extension?

https://github.com/bortsen/worker-from-class

Seems quite elegant.

Original comment by ihatelivelyids on 14 Oct 2012 at 3:24

GoogleCodeExporter commented 8 years ago
Yeah, I've tried it and it doesn't works, but I used this one: 
https://github.com/makc/worker-from-class works fine for me, it is almost the 
same as WorkerDomain.current.createWorker(this.loaderInfo.bytes) though.

Original comment by dmitry....@gmail.com on 14 Oct 2012 at 4:29