Workers in Apache Flex 4.7

2019-09-15 03:12发布

问题:

has anyone been able to use Workers in AIR Application built with Flex 4.9.1 and AIR 3.7? I wanted to give it a try for a project, but as soon as I include/setup the worker like in the tutorial made by Lee Brimelow, my Application "freezes". Which means: It does not start. The compiler compiles, I get the info-text in the console, but neither my window opens nor my does any of my events get fired.

Ideas anyone :) ?

回答1:

Quite simple solution. Simply add

-swf-version=XX //XX must be >=17

as a compiler argument and it works. I think this is a bit weird, since I am using AIR 3.7 but okay, whatever it takes :)