Help: I need to make air.worker to work in my HTML only adobe air
I need to make air.worker to work in my HTML only adobe air. I see airAliases.js has those definition.
There is no guide or tutorial in how to use them. Can someone direct me example of how to use them?
Also worker do not work in Adobe air.
/* Main thread
var worker = air.Worker('assets/js/test.js');
// Setup an event listener that will handle messages received from the worker.
worker.addEventListener('message', function(e) {
// Log the workers message.
alert(e.data);
console.log(e.data);
}, false);
worker.postMessage('Hello World');
*/
/* File: test.js
// Setup an event listener that will handle messages sent to the worker.
self.addEventListener('message', function(e) {
// Send the message back.
self.postMessage('You said1: ' + e.data);
}, false);
*/
above code work in ff browser but do not work in adobe air preview mode. It say worker not defined. Is it same as air.worker?
thans
alexk
