Custom Typing in packages gives autoformat errors
Flash8/MX2004
When using custom typing like var xyz:SpecialItem; and you are inside
a package with the custom typing containing class, you'll get an error, when using autoformat (ctrl-shift-f). "Check Syntax" and compiling give no errors.
Example :
Code:
class com.mcusher.SpecialItem
{
function SpecialItem ()
{
}
}
In my Main class in the same package i try to use it:
Code:
import com.mcusher.SpecialItem;
class com.mcusher.Main
{
private var item:SpecialItem;
function Main ()
{
}
}
Autoformat says: "Syntax error" but there is none. (Syntax check is fine, and compiling as well).
If the import statement is omitted (as both classes are in the same package) or in FlashMX2004 pressing autoformat, the compiler shows the following error:
Quote:
**Error** D:\Projekte\Weidmueller\testproject\com\mcusher\Sp ecialItem.as: Line 2: The class being compiled, 'com.mcusher.SpecialItem', does not match the class that was imported, 'SpecialItem'.
{
According to our Java ppl, i am doing everything ok...
Is it a flash bug?
It is not about deleting ASO files!