[swx] mtasc strict
Udvari Gábor
udi86 at citromail.hu
Sat Jul 21 00:16:21 EDT 2007
Hi list,finally got enough time to try this wonder :). I tried to make the Calculator tutorial with my developement tools, namely MTASC but with the -strict switch on. Found some problems, some are just missing types:org/swxformat/ExternalAsset.as:27: characters 9-38 : type error Type required in strict modeorg/swxformat/LoadManager.as:16: characters 9-33 : type error Type required in strict modeorg/swxformat/LoadManager.as:16: characters 9-33 : type error Type required in strict modeorg/swxformat/LoadManager.as:88: characters 8-40 : type error Type required in strict modeorg/swxformat/SWX.as:329: characters 7-12 : type error Type required in strict modeorg/swxformat/SWX.as:368: characters 3-8 : type error Type required in strict modethey can be easily added, there's no problem. There's another kind of error:org/swxformat/SWX.as:175: characters 55-70 : type error Unknown variable Delegateafter adding all the mx classes to the classpath it is also solved. But another occurs with non-strict mode too:mtasc/mx/utils/Delegate.as:27: characters 3-11 : type error Local variable redefinition : funcAral, could you keep the mx classes out, and write your own, MTASC strict/non-strict code? Because if we choose to decide to use MTASC, where could we get these classes from? It's not a problem for me anymore, because I use a portable SciTE with MTASC built in it, so from now on, I will have all the mx classes by me, but as we know MTASC handles the variables in another way than Flash. And MTASC is doing the job in the right way, if I remember.The last, and most serious problem:org/swxformat/SWX.as:293: characters 3-8 : type error Type required in strict modeorg/swxformat/SWX.as:331: characters 3-8 : type error Type required in strict modeThe type can't be done easily, because if you declare the var x = data[i]; as an Object, both arrayToJson(x) and stringToJson(x) will fail, because they need arrays and strings. Could be that hacked somehow? Or should I forget the -strict switch when using SWX?To sum up all the things, I failed at the first to use the Full API with MTASC. The -strict mode seems to be a bit difficult to solve, but the non-strict mode could be reached, if the mx classes would be left out. I could use the Flash IDE, but I got so much used to the opensource solutions :). So, please Aral try to solve these issues, because the SWX is really nice, and it would be much better, if we could use it with MTASC.ps.: All the errors came up with SWX 1.3 (not svn), MTASC 1.13, and mx classes from Adobe Flash 9 Public Alpha (AS3 public preview)Cheers: Gabor Udvari 'Udi'
_________________________________________
Éhes vagy? Internetes ételrendelés, egyszerűen, házhozszállítással! Pizzák, hamburgerek, saláták, stb.... Minden egy helyen! KLIKK IDE!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/swx_osflash.org/attachments/20070721/0917e9ec/attachment.html
More information about the swx
mailing list