Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top