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 :
In my Main class in the same package i try to use it:Code:class com.mcusher.SpecialItem { function SpecialItem () { } }
Autoformat says: "Syntax error" but there is none. (Syntax check is fine, and compiling as well).Code:import com.mcusher.SpecialItem; class com.mcusher.Main { private var item:SpecialItem; function Main () { } }
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:
According to our Java ppl, i am doing everything ok...**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'.
{
Is it a flash bug?
It is not about deleting ASO files!




Reply With Quote