[haXe] "Invalid package : flash9.utils should be flash.utils" ?
Zjnue Brzavi
zjnue.brzavi at googlemail.com
Tue Jan 16 18:52:42 CET 2007
Hi Carsten,
When you compile for flash 9 and use import statements such as:
import flash.a.b;
import flash.c;
it will look for package a and classes b and c in the flash9 package
of the std library - not the flash package.
Therefore, if you want to target classes Stage and MovieClip for
instance, you would use
import flash.display.Stage;
import flash.display.MovieClip;
when compiling for flash9.
By contrast you would use the statements:
import flash.Stage;
import flash.MovieClip;
when compiling for flash <= 8.
Inspect the flash and flash9 packages in the std library a bit. You'll
notice similar classes are placed in somewhat different package
structures..
All the best,
Z
More information about the Haxe
mailing list