AS3 Release 1.1.0

Written by Aaron Clinger on February 11th, 2009

We just released a new version of CASA Lib AS3. This update includes many improvements, optimizations, new methods, and a few new classes. Two of my favorite classes are LibraryLoad and LibraryManager which make loading and managing external assets simple.

Change Log

  • Added willTrigger check to dispatchEvent for slight speed optimization if there are no listeners.
  • CasaSprite & CasaMovieClip’s stage getter will return StageReference’s default stage if the display objects have not been added to the display list.
  • Minor improvements to the documentation and fixed misspellings.
  • Added isEqual (with option to define precision) to NumberUtil.
  • Updated Sequence to extend from Process.
  • Updated AlignUtil so all methods have the option to snap to pixel.
  • Added a safety measure in LoadUtil’s calculateBps.
  • Stopwatch now has a running method.
  • Updated GroupLoad so it sets load percent manually to 100% when loaded to counteract number float errors.
  • Updated GroupLoad so that setting preventCache will change the properties of its children.
  • GroupLoad now has a destroyLoads method.
  • Made minor optimizations to LoadItem and made it easier to extend.
  • Fixed a bug in the documentation which prevented StringUtil trim functions from appearing in the HTML documentation.
  • Added CasaLoader (basically split GraphicLoad into two classes) to be easily extended by GraphicLoad and LibraryLoad.
  • Added ClassUtil.
  • Added StageEventProxy.
  • Added SingletonUtil.
  • Added LibraryLoad.
  • Added LibraryManager.

1.1.0 Downloads & Documentation

ZIP: http://as3.casalib.org/releases/1.1.0/1.1.0.zip
SVN: http://svn.as3.casalib.org/releases/1.1.0/
Documentation: http://as3.casalib.org/releases/1.1.0/docs/

Please note: We advise you to only use the latest release links. This way you can be assured that the version you are getting is the most up to date. We provide links to specific versions to be used in cases of forward compatibility issues.

Comments

Written by Jeff L on July 17th, 2009

Hello,

Thanks for this create library of classes! I have found a bug in the GraphicLoad class… This is class does not report an error when an object is not found, like “url not found.”

Written by Aaron Clinger on July 23rd, 2009

Hi Jeff,

All load classes dispatch an IOErrorEvent event when the requested file cannot be found. Let me know if you have any problems getting that to work.

Written by Aaron Clinger on July 23rd, 2009

Readers,

The class LibraryLoad mentioned in this release is now called SwfLoad in future releases.

Written by leef on November 10th, 2009

thanks,i am using this lib.

Comments are no longer accepted for this blog post.