Why as worker not working on macos 10.8.4?
os version 10.8.4
air sdk 3.8beta
flash player 11.7 debug version macos
and tried 3.7, result same
code simple test
main:
package sandbox
{
import flash.display.sprite;
import flash.system.worker;
import flash.system.workerdomain;
import flash.utils.bytearray;
public class testworkermain extends sprite
{
[embed(source="../../workerswfs/sandbox/testworker.swf", mimetype="application/octet-stream")]
private static var worker_byteclass:class;
private var worker:worker;
public function testworkermain()
{
var bytes:bytearray = new worker_byteclass();
worker = workerdomain.current.createworker(bytes);
worker.start();
super();
}
}
}
worker:
package sandbox
{
import flash.display.sprite;
import flash.events.timerevent;
import flash.utils.timer;
public class testworker extends sprite
{
public function testworker()
{
super();
var t:timer = new timer(1000);
t.addeventlistener(timerevent.timer,ontimer);
t.start();
}
protected function ontimer(event:timerevent):void
{
trace("working ... ");
}
}
}
i start scout see no worker reported, on windows platform flash player 11.7, scout report there's worker
but worker's functionality fine, synced main flow, meanless start worker
More discussions in AIR Beta Channel
adobe
Comments
Post a Comment