Recently I started playing with Unity, a great XML Socket server product. One of Unitys cool features is it provides you with a bunch of AS2 classes that you can use to build pretty complex application. These classes are provided as a SWC that you include in your flas library.
When I sat down initially to write some code, I didnt get any code hinting in my favorite editor PrimalScript since the classes were distributed in an SWC. SWCs are just zip files which contain a bunch of files that support the component. The majority of the SWCs contents are .asi files which provide interfaces and class information to the compiler for type checking. They are very similar to regular classes except they dont include any of the implementation, only the interface of each class.
PrimalScript includes support for ASI files so, with little effort, you can get full code hinting for SWCs.
Continue reading ‘Code Hinting for SWCs in PrimalScript (Unity Client Classes Example)’