Actionscript Workers don't work on Mac OSX (Flash Player 11.7) -
mac osx version 10.8.4 adobe air sdk 3.7 flash player 11.7 debug version mac osx
i've tried adobe air sdk 3.8 beta, result same.
my code simple.
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 ... "); } } }
on windows can see worker in scout report, on mac there's no worker shown.
the worker functions fine, think it's synced main thread, makes meaningless use worker.
does have problem on mac osx?
ps:i not using chrome embedded flash plugin, using adobe one.
got work! i've been trouble shooting on & off 2 days. upgraded imac mountain lion. still didn't fix problem. using safari browser. finally, thought maybe that's problem. so, downloaded/installed latest firefox. works! so, looks i'm using firefox now... it's been while. wtf!!! glad solved prob tho!
Comments
Post a Comment