-
1. Re: Native Extensions don't work in Flash CS6
marcfolio May 29, 2012 11:30 AM (in response to FLAdude)So how did you get it to work. I'm still very confused.
-
2. Re: Native Extensions don't work in Flash CS6
FLAdude Jun 3, 2012 8:41 AM (in response to marcfolio)There was nothing wrong with CS6 in this situation, it was that the package name of the specific extension I was trying to use that was horribly named, to the point you had to repeat the class name twice, which means most developers would only put it once and it wouldn't work. Being that this was the first native extension I tried to run, it seemed that the native extension feature didn't work.
Say your name is Bob Smith and you make a native extension that runs your hardware camera as a flashlight.
If you name the class FlashLight and the package name com.bobsmith.nativeExtensions.FlashLight
people would have to put
import com.bobsmith.nativeExtensions.FlashLight.FlashLight;
or
import com.bobsmith.nativeExtensions.FlashLight.*;
to import it. And that woudldn't make much sense. "FlashLight" is the name of the class. If the class and the package subdirectory have the exact same name, people are going to think the package subdirectory is the class.
Most people trying to import it would put
import com.bobsmith.nativeExtensions.FlashLight;
or
import com.bobsmith.nativeExtensions.*;
in which case it wounld not work.
A non-insane way to name your package would be com.bobsmith.nativeExtensions.hardware
Then one could put
import com.bobsmith.nativeExtensions.hardware.FlashLight;
or
import com.bobsmith.nativeExtensions.hardware.*;
That would make sense, either importing the FlashLight hardware feature or all hardware features in the package.

