It has been a long five months, but we are excited to be finally releasing the next version of CASA Lib! We’ve realized that five months is way too long to go between releases and will start releasing smaller updates more frequently.
While the site updates have slowed, our work on the code base has continued aggressively. This version contains a complete reorganization of the load classes and a ton of great additions. Special thanks to Jon Adams for his major contributions. Below is the long list of improvements.
Change Log
- Added static methods
fromandtoto ProperyTween to enable faster development by removing the need to create an instance and then call start. - Fixed a bug in Sequence class that prevented resuming.
- EnterFrame now throws an
Errorif destroy is called (it’s a singleton). - Added a
MAX_THREADSconstant to ProcessGroup. You can use this constant to set ProcessGroup’sthreadsto the maximum allowed to virtually disable threading. - Added
hasProcessto ProcessGroup. - Updated ProcessGroup‘s
autoStartproperty to automatically start the group without having a new process added. - Added the ability to get queued, running, incomplete and completed processes and loads in ProcessGroup and GroupLoad.
- Fixed issue with GroupLoad where the group would report complete before the items had dispatched their complete event.
- Added
hasLoadto GroupLoad. - Updated VideoLoad so it will report buffer and progress faster.
- Added a getter
metaDatadirectly on VideoLoad so you no longer need to add an event to capture it. - LoadItem and CasaLoader now return positive infinity for
bytesTotalif no content length header was found. Once the file is loaded it will return the accurate value. - Added getters
latency,url,timeandhttpStatusto LoadItem. - Updated LoadEvent to contain all properties of LoadItem.
- DataLoad throws errors if you try to access data before it’s loaded or if it cannot convert it to the proper type.
- DataLoad now automatically turns strings to
URLVariablesand vice-versa in case of misdefined data format. - Added the ability to define data format for DataLoad.
- Added the ability to get data as
StringandByteArrayfrom DataLoad. - Split
GraphicLoadinto two classes; SwfLoad and ImageLoad.GraphicLoadno longer exists. - Removed
LibraryLoad, the new SwfLoad class now contains all the functionality ofLibraryLoad. - Removed
BaseLoadItembecause it is no longer needed. - Added
getGroupIdBySwfLoadandgetGroupIdByDefinitionto LibraryManager. - Fixed bug in LibraryManager that prevented class creation from non-default groups.
- Added CasaSimpleButton.
- CasaBitmap and CasaTextField now also have a
stagegetter that will return StageReference’s default stage if the display objects have not been added to the display list. - Made CasaMovieClip a
dynamicclass so that it behaves more in line with the nativeMovieClipclass. - Made Distribution extend from CasaSprite.
- Added align
outsideparameter to AlignUtil. - Added
getItemByType,getItemsByType,getItemByKeyandgetItemsByKeyto ArrayUtil. - Fixed an issue in DateUtil’s
iso8601ToDatewhen converting date to local time zones near midnight. - Added DisplayObjectUtil with a
removeChildrenmethod. - Optimized RatioUtil and added
snapToPixeloption. - Added
htmlEncode,htmlDecode,isNumberandgetWordCountto StringUtil. - Made minor improvements to StringUtil‘s
toTitleCase. - Added
classSmallCapsandformatSmallCapsto TextFieldUtil. - Fixed mistake in GeomUtil’s angle method that only returned 180 degrees instead of 360.
- Added a
getWeightedAveragefunction to NumberUtil.
1.2.0 Downloads & Documentation
ZIP: http://as3.casalib.org/releases/1.2.0/1.2.0.zip
SVN: http://svn.as3.casalib.org/releases/1.2.0/
Documentation: http://as3.casalib.org/releases/1.2.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.
Written by Khanh on July 22nd, 2009
Hi Aaron!
I’m a fan of casa framework :)
I have big problem with SingletonUI. I must say that is a good idea, but I can’t use it as well as your tutorial.
Sample I have a class name as MyClass, in contructor of MyClass, i trace (this,” is create”). And in main.as, I have some code
“
var mclass:MyClass=new MyClass();
var nClass:MyClass=SingletonUI.singleton(MyClass)
” And :((
It trace twice string in contructor of MyClass
Any ideas for this sample, maybe i wrong some code :(
Thanks