7+ ActionScript Class Let You Using XML Easily

Categories Flash | 14/01/10 | 1,566 views   |  tags: , ,
7+ ActionScript Class Let You Using XML Easily

Using XML is one of the best ways for structuring external content in a logical format that is easy to understand, process, and update.

The XML libraries have been completely overhauled in ActionScript 3. It implements the powerful XML-handling standards defined in ECMAScript for XML (E4X) specification. The XML class contains methods and properties for working with XML objects.

In AS 2 we create an XML object and then call the XML.load() method in order to load in an external file. In AS 3 loading of external XML files is handled by the new URLLoader class.

Read More

ASZip: A Very Useful ActionScript 3 library to Generate ZIP file with Simple Interface

Because a zip file permits a number of compression algorithms so a ZIP file contains one or more files. FZip is a cute little Actionscript 3 class library, it parses ZIP archives progressively, allowing access to contained files while the archive is loading(@see Actionscript 3 class zip library–FZip).

Now we will introduce an other actionscript zip library: ASZip.  You can generate ZIP files from ActionScript 3 with ASZip. ASZip uses the native gzip (Deflate) compression from the flash.utils.Bytearray.compress() method. More compression algorithms will be added in the future. ASZip has simple interface to add different types of files and directories.

Read More

How to Wait or Sleep in Flex/ActionScript

Categories Flex | 28/08/09 | 41,919 views   |  tags: , , ,
How to Wait or Sleep in Flex/ActionScript

If you want to upload a big file to server or do a long time action in Flex/ActionScript like HTTPService to communicate with an external server that hosts the database, a time delay function like Sleep() will be needed.

So, is there a sleep function in flex 2 ? Run multi-thread, one sleep and wait the result of this thread and the other will be continue.

Unfortunatly, because the flash player, from our perspective, is single threaded so we can not do that.

Read More