myflashlab / easyas-worker Goto Github PK
View Code? Open in Web Editor NEWRun AS worker in your AdobeAir projects without having to deal with complicated flash.system.Worker class
License: MIT License
Run AS worker in your AdobeAir projects without having to deal with complicated flash.system.Worker class
License: MIT License
Is there anyway to pass the current application domain to the dynamically generated swf so that they both share the same security sandbox?
I'm getting security sandbox violation errors when trying to load files from the file system using URLLoader in the worker but I dont get these error when loading the same files from the main swf. Only in the worker.
As soon as I make the worker, I get two outputs from the event revealing it is terminated.
[Event type="workerState" bubbles=false cancelable=false eventPhase=2]
Worker state = terminated
[Event type="workerState" bubbles=false cancelable=false eventPhase=2]
Worker state = terminated
How do I find out what is causing the problem? The only difference is that I start my Worker in a separate class but create it in the Main class.
Hi, How to use Workers for individual code for example i want to use workers for Adds-on. How to call add-add-on function in workers can you send sample code
Hi, I'm trying to use your easyAS-Worker to encode BitmapData to ByteArray and then upload to server and I'm having trouble with passing the BitmapData variable to the worker function.
This is the function itself
public function encodeImageAndSave(bmpData:BitmapData, url:String):void
{
thisCommand = arguments.callee;
//here is the encoding and uploading code
}
I'm calling the as shown in the example with the WorkerManager
var wm:WorkerManager;
public function start(worker:Class):void
{
wm = new WorkerManager(worker, loaderInfo.bytes, this);
wm.start();
wm.addEventListener(Event.WORKER_STATE, onWorkerState);
}
private function onWorkerState(e:Event):void
{
if (wm.state == WorkerState.RUNNING)
{
wm.command("encodeImageAndSave", onProgress, onResult, imageToUpload, urlToCall);
}
}
But the encoding function didn't run at all and I'm getting Error #1034: Type Coercion failed: cannot convert Object@11bbbe3a1 to flash.display.BitmapData.
Am I doing something wrong or it's just not possible to pass BitmapData as parameter?
As it mentioned. Same project works in FD, but not in IntelliJIdea in debug mode. Look attachment.
Any clue?
hi i have air 19 and i run the same code on flash builder it compiler with no errrs but when it runs monthing happens the thread does not work
any suggestions
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.