Copy link to clipboard
Copied
Hi... Is it an AS3 "feature" or a FB compiler bug that I cannot use a class without importing it?
I have a statement such as
if (de.codebank.util.StringUtilities.startsWith(status.name, phase.name+"_")) { ... }
which does not compile until I import the StringUtilities class, which is pointless, of course.
Copy link to clipboard
Copied
Knock, knock...
Copy link to clipboard
Copied
I believe this is how AS3 works. Fully qualified class types require import statement.
You use fully qualified name whenever you want to avoid ambiguity.
However, when the code is like,
import mx.collections.XMLListCollection;
var arr:mx.collections.ArrayCollection;
It works since compiler now understands that "mx.collections" is a package.