In our real world, many things are one and only. For example, there is only one god in our world, and only one president in the USA, eh, I mean the current president. One and only is very important to our world, and so does to our program.
I think many of you are the fans of Diablo. I’m one of you In Diablo series, you can choose different characters to begin your Diablo journey. As a programmer, maybe you’ll write a base class, named Character. Suppose there are only two characters, named FatCharacter and ThinCharacter.
And we will define some common operations in the base class Character, define special skills in the derived classes.
You can see the sample source code first. Download Full Project
Have you ever heard Xerox PARC (Palo Alto Research Center, @see http://en.wikipedia.org/wiki/PARC_(company) )? This research center has many great innovations. GUI (Graphical User Interface) is one of them.
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.
Part of the newest corelib 0.92.1, an Adobe AIR only class that provides a log target for the Flex logging framework, that logs files to a file on the user’s system.I think it’s useful when you want to write the logs into a specified file instead of the default one.
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..
Someone asked me how to insert text into input components such as TextInput and TextArea at a specified position programmatically.
Solution Summery:TextInput and TextArea are warped for the TextField interactive object contained in the package flash.text. TextField class provides the function replaceText() to help us to complete the insertion.