Posts Tagged ‘corelib’

IMO, the major usage of this class is parsing a URL to retrieve the information such as host, port, file name, file extension, query, etc. It’s really a convenient way instead of using regular expression to parse the target information.

Class that provides a dynamic implimentation of the URLLoader class. This class provides no API implimentations. However, since the class is declared as dynamic, it can be used in place of URLLoader, and allow you to dynamically attach properties to it (which URLLoader does not allow). This class is simple but useful when you want to transfer arguments together with URLLoader.

The most popular image codecs on the internet are JPEG, PNG and GIF. However, GIF(http://code.google.com/p/as3gif/) is another stuff I will show you in another article. Here shows a BMPEncoder as well for a comparison to JPEGEncoder and PNGEncoder, and maybe you will find it’s useful in case.

This class performs MD5 hash of an input stream in chunks. It is based on com.adobe.crypto.MD5 and can process data in chunks. Both block creation and hash computation are done together for whatever input is available so that the memory overhead at a time is always fixed. Memory usage is governed by two parameters: one is the amount of data passed in to update() and the other is memoryBlockSize. The latter comes into play only when the memory window exceeds the pre allocated memory window of flash player. Usage: create an instance, call update(data) repeatedly for all chunks and finally complete() which will return the md5 hash..

November 15 2008, AS3Corelib 0.92.1 be released, As3corelib provides more helpful methods to help us handle strings and dates with the newest 0.92.1. They are stringHasValue of StringUtil, makeMorning and makeNight of DateUtil.

HMAC is the ab. For Hashed Message Authentication codes (I am not sure, may be Hash Message Authentication codes?). The usage of this mechanism is described in the RFC2104 document (http://www.faqs.org/rfcs/rfc2104.html) as below:

Since this article, I won’t post the language reference of such libraries as before. It’s really a boring thing to do repeated works. All the language reference you will find in the packaged file provided on the corelib project home http://code.google.com/p/as3corelib/ , or download from this link http://as3corelib.googlecode.com/files/as3corelib-.92.1.zip directly.

This class provides encoding and decoding of the JSON format.This demo shows how to encode an object to a JSON-formate string and how to decode a JSON-formate string to an object. It’s really simple with this class provided by as3corelib library.