MXI, AS2 and case sensitivity
I came across a very subtle gotcha this week.
I was creating an MXI to build an MXP for installing some AS2 components and source.
After building the MXP and then installing it we ran into some problems in Flash with previously OK code not compiling. The compiler claimed it couldn't load the class file. We checked back and we had the source file in the staging area and we had it in the MXI and the MXP built without any warnings.
Puzzling!
We checked again and noticed that there was a small typo in the MXI a class file was spelt "someClassFile" but should have been "SomeClassFile".
As far as the MXI was called when running on Windows as it built the MXP "SomeClassFile" and "someClassFile" are the same thing so the build was sucessfull.
When it came to installation the MXP file now expanded the class file and copied to the drive and followed the MXI instructions and wrote the file as "someClassFile". As this was a Windows installation the file "someClassFile" overwrote the old file "SomeClassFile".
Now back in the Flash IDE when we ran the program using AS2. The compiler under AS2 it seems is case sensitive even as far as just finding a file on the drive so "SomeClassFile" is different from "someClassFile" and therefore it couldn't find the file.
OOOpppssss!
Okay problem solved!
It would be nice I guess at some point if the Extension Manager became case sensitive as well to help catch slips like this but in the mean time ....be warned.... watchout for case sensitivity in file names when creating your MXI