Coder Social home page Coder Social logo

easyas-worker's People

Contributors

myflashlab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

easyas-worker's Issues

Any way to pass Application Domain?

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.

Terminated

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.

Workers

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

BitmapData as Worker parameter

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?

IntelliJ Idea workers doesn't work in debug mode

As it mentioned. Same project works in FD, but not in IntelliJIdea in debug mode. Look attachment.
Any clue?

<iframe src="//giphy.com/embed/3o6Ztlf1nMPJezLgNG" width="480" height="229" frameBorder="0" class="giphy-embed" allowFullScreen></iframe>

via GIPHY

Run on flash Builder

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.