I want to implement Worker in my project but it seems like I cannot directly import the class. I am working on my project without any extra libraries / SDK such as Flex, furthermore, I am working on Flash Professional. I've been researching about this matter for awhile so I understand how Worker class functions but I cannot figure out how to actually implement it. When I try to import the Worker class using the following line of code:

import flash.system.Worker;

It says there is no such class called Worker in the console.

有帮助吗?

解决方案

Pay due attention to the Flash Player version requirements for Worker:

Runtime Versions: Flash Player 11.4, AIR 3.4

Are you sure you're targeting Flash Player 11.4? It is quite a recent version.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top