Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made compatible with haxe #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added AS-Workers.swc
Binary file not shown.
6 changes: 3 additions & 3 deletions FD/src/com/myflashlabs/utils/worker/WorkerBase.as
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,20 @@ package com.myflashlabs.utils.worker
func.apply(null, arr);
}

protected function sendProgress($method:Function, ...$params):void
public function sendProgress($method:Function, ...$params):void
{
$params.unshift(getFunctionName($method));
$params.unshift("type:progress");
_outgoingChannel.send($params);
}

protected function sendResult($method:Function, ...$params):void
public function sendResult($method:Function, ...$params):void
{
$params.unshift(getFunctionName($method));
_outgoingChannel.send($params);
}

protected function getFunctionName(callee:Function):String
public function getFunctionName(callee:Function):String
{
var parent:Object = this;
for each (var m:XML in describeType(parent)..method)
Expand Down
2 changes: 1 addition & 1 deletion FD/src/com/myflashlabs/utils/worker/WorkerManager.as
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ package com.myflashlabs.utils.worker
trace("NOTICE: Workers debug mode is on. Build your app in release mode and debug mode will automatically go off.");
}

protected function getFunctionName(callee:Function):String
public function getFunctionName(callee:Function):String
{
var parent:Object = _delegate;
for each (var m:XML in describeType(parent)..method)
Expand Down