No Clean Feed - Stop Internet Censorship in Australia
«
»

AS3, Almirun Common Lib

as3 lorem ipsum generator

03.20.08 | 5 Comments

I have updated the Almirun Common Libraries with some new classes. Most useful is likely to be the LoremIpsumGenerator class, an AS3 version of the Java class LoremIpsum4J. “Lorem ipsum” is the standard pseudo-Latin text used as filler when doing page layouts, and this is an easy way to grab as little or as much as you want of it, programmatically, via AS3.

The API has had to change a bit because AS3’s HTTP loading mechanism is asynchronous … API documentation here.

It’s only lightly tested so if you use it, and find any problems, please let me know.

For a future version I think I might use SharedObject to provide a semi-permanent cache and avoid hitting the Lipsum server (who provide the REST-based interface) too much.

[ Edit : 26.03.08 ] Fixed a bug as noted by the Lipsum folks – thanks.

[ Edit : 21.11.08 ] Accepted amendments, more bug fixes – thanks Quentin. Use the latest version in RIAForge’s Subversion repository to get the fix.

related

5 Comments

have your say

Add your comment below, or trackback from your own site. Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

:

:


«
»
Close
E-mail It