Ah, sorry - as this is still pre-beta, I still have test code in the library files, but it shouldn't run during a reload() as the framework knows it's reloading.
If you go to the bottom of config.jsfl and change any lines that say if(1) to if(0) does that solve it?
On a side note - sorry you're getting so many errors!
OK folks, this one was resolved by myself and Tamt on Skype, and it was a right bugger to work out.
The breakthrough came after saving one of the problem files to a new, blank file and saving it, and then it worked. The difference was that xJSFL's default file-encoding is UTF-8, but Tamt's was GBK, which is an Asian encoding.
As I'm certainly no expert on encodings, can anyone else shed any light on this?
It would be a bit awkward for Asian users to have to manually change the encoding on each file (in Komodo, you go Edit > Current File Settings > Encoding) so does anyone know if using the BOM (byte-order mark) would solve this?
Hi, I think adding the "BOM" will solve the problem.
Check out komodo's document: http://docs.activestate.com/komodo/5.1/prefs.html and look at the "Internationalization Preferences" part.
By defautl, the IDE will detect the file's "BOM" signature to determine which encoding the file is, if detect failure, the IDE will read the file in system's default encoding(in Chinese operating system, it may be GBK), this may cause the IDE parse the file wrongly, and ofcourse it won't be run correctly.
We don't how Flash IDE read jsfl file's encoding, but I think it may just like the komodo.