Finished working on my new article for <a href=”http://www.communitymx.com”>Community MX</a>. I had modified some loops for use in the article, so figured I’d update the one I have currently here as well as add the new one. They’re off to the left under Downloads on the “Custom Classes” header.
Process uses a custom class thrown on _global that uses setInterval to emulate for loops so you can write more efficient Flash apps. The Safe Process is a component that does much the same thing, except it uses onEnterFrame to give you almost 100% protection from that bloody “Script is running too slow” error.
Both have examples in the comments of their respective files. Process.as can work via <code>#include “Process.as”</code> on the main timeline while SafeProcess.as needs to be put into a movie clip with a linkageID of “SafeProcessSymbol”.
<a href=”http://psychlonex.dyndns.org/”>John Robinson</a> made a good point last night while talking over email during my breaks from writing. He said that it seems most Flash developers prefer using #include in their code to dropping custom component classes in their library (usually ActionScript that does stuff with little or no visual content). I almost never use #includes. Is this true for you?