Skip navigation
Currently Being Moderated

Workers in AIR Application

Aug 31, 2012 1:50 PM

Tags: #air #printjob #concurrency #workers #messagechannel #multi-threading

What is the workflow for creating and using workers in an AIR application? I can't import "flash.system.MessageChannel" nor "flash.system.Worker". The Worker class, used to create the messageChannels (e.g. Worker.current.createMessageChannel(worker))) is also not usable.

 

Is this even possible at the moment? I created a new Flex project and selected SDK 4.6.

 

Alternatively, I can create an Actionscript Project where I can import all the files mentioned above. I was attempting to load the swfs generated dynamically but shortly found out that the start2() method of the PrintJob class cannot be imported in an ActionScript project - which is what I want to use the worker for.

 

Any ideas/help is greatly appreciated.

 

Thanks,

 

Victor

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points