My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Main  

Featured
Updated Jul 29, 2010 by mikechambers

Wiki for ActionScript 3 corelib Project

THIS PROJECT HAS MOVED AND IS NO LONGER BEING MAINTAINED ON GOOGLE CODE

THE NEW PROJECT HOME CAN BE FOUND AT:

https://github.com/mikechambers/as3corelib

THIS PAGE IS NO LONGER MAINTAINED AND HAS BEEN MOVED TO: https://github.com/mikechambers/as3corelib/wikis

Introduction

The corelib project is an ActionScript 3 Library that contains a number of classes and utilities for working with ActionScript 3. These include classes for MD5 and SHA 1 hashing, JSON serialization as well as general String, Number and Date APIs.

Details

Functionality includes:

  • MD5 Hash
  • SHA1 Hash
  • JSON Library (serialization and de-serialization)
  • JPEG and PNG Encoding
  • HTTP Utility and Helper Classes
  • Array, String, Date, Number and XML Utility APIs
  • More...

Authors

  • Christian Cantrell
  • Mike Chambers
  • Daniel Dura
  • Darron Schall
  • Tinic Uro

This project was contributed to the open source community by Adobe and was originally hosted on Adobe Labs.

Comment by ahme...@gmail.com, Feb 7, 2008

somebody should put up the AS Docs on a web page somewhere... i don't wnat to have to download the whole zip, unzip, etc to see the docs... devs are lazy :-)

Comment by alex.gor...@gmail.com, Apr 28, 2008
Comment by drunken...@gmail.com, Jun 17, 2008

Everything about the JPEGEncoder and PNGEncoder is working… except for the fact that I can’t open the JPEG (or PNG) after it downloads to my desktop. Every program I use complains that there appears to be corrupt data.

I’ve tried downloading zip archives of other people's SWF/PHP combinations, and always get the same result: files that do contain data, but can't be opened with image viewing software of any stripe, because the data is "corrupt" or "invalid".

Is this a PHP thing? Is this an Apache thing? A security thing? I wish there were examples of the code in action....

Comment by bigOsma...@gmail.com, Sep 18, 2008

I read somewhere that using Vectors and fixed point integer arithmetic would give us close to native speeds on JPEG encoding. Is that something we can expect to see in as3corelib sometime soon? That would be a great performance improvement. Please let us know.

Comment by a.goli...@web.de, Oct 1, 2008

Nice lib guys, but I wonder why you implemented StringUtils?.replace by yourself and didn´t used the faster String.split().join() technique for replacing?

Comment by project member mikechambers, Nov 7, 2008

@a.goli...@web.de

Have you done any performance tests between corelib implementation and split()? If it is faster then we can replace it.

If you do have some, can you post an issue about it with the info?

Thanks...

mike

Comment by vdeproje...@gmail.com, Nov 8, 2008

It would be awesome if someone could come up with DICOM support (next to the JPG & PNG support). This way Flex would be a serious option in the medical world.

Comment by nicolas....@gmail.com, Nov 26, 2008

Could you add Blowfish and AES? Because as3Crypto is undocumented and slightly bloated imho. Cheers.

Comment by kkap...@gmail.com, Feb 27, 2009

very interesting project :) thanks :)

Comment by k5angle9...@gmail.com, Mar 9, 2009

nice project, good job

Comment by bruce....@gmail.com, Apr 11, 2009

I'm new to Flash (using CS4, ActionsScript? 3.0, and not Flex), and I want to download as3corelib but have three questions please:

1. To what folder do I put it after downloading?

2. Do I unzip it with Winzip, or leave it as a zip file?

3. Do I need to do anything within the Flash application to start using it, or just add the import statements as the AS3 examples show?

Thanks much for any help.

Comment by anil.kad...@gmail.com, Oct 1, 2009

I am trying to use the JSON API to encode decode the data.

I get the below run time error:

ReferenceError?: Error #1065: Variable {"id":646,"method":"getInfo","jsonrpc":"2","params":} is not defined.

at global/flash.utils::getDefinitionByName()
at mx.utils::DescribeTypeCache?$/describeType()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\utils\DescribeTypeCache?.as:95]
at mx.utils::ObjectUtil?$/getClassInfo()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\utils\ObjectUtil?.as:829]
at mx.rpc.http::HTTPService/send()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\http\HTTPService.as:710]
at mx.rpc.http.mxml::HTTPService/send()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\http\mxml\HTTPService.as:232]
at Px2try/doLogin()[C:\Documents and Settings\anilk\workspace\Px2try\src\Px2try.mxml:30]
at Px2try/Px2try_Application1?_creationComplete()[C:\Documents and Settings\anilk\workspace\Px2try\src\Px2try.mxml:3]
at flash.events::EventDispatcher?/dispatchEventFunction()
at flash.events::EventDispatcher?/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9298]
at mx.core::UIComponent/set initialized()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1169]
at mx.managers::LayoutManager?/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager?.as:718]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628]
at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]

The code is as shown below:-

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"

xmlns="" creationComplete="doLogin()">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.rpc.events.FaultEvent?;
import mx.collections.ArrayCollection?;
import com.adobe.serialization.json.JSON;
import mx.rpc.events.ResultEvent?;
private function resultHandler(event:ResultEvent?):void
{
var rawData:String = event.result.toString();
var arr:Array = (JSON.decode(rawData) as Array);

var arrCol:ArrayCollection? = new ArrayCollection?(arr);
trace(arrCol);
}

private function faultHandler(event:FaultEvent?):void
{
Alert.show(event.fault.toString());
}

public function doLogin():void
{
var obj:Object = {"jsonrpc":"2","method":"getInfo","params":,"id":646};
var req:String = JSON.encode(obj);
trace(req);
service.send(req);
}
]]>
</mx:Script>
<mx:HTTPService id="service" resultFormat="text"
url="http://px2-demo.peppercon.de/auth/user/admin"
result="resultHandler(event)"
fault="faultHandler(event)" />

</mx:Application>

I added the swc to the library path manually.

Please let me know what am I missing.

Thanks in Advance, Anil

Comment by anthony....@gmail.com, Aug 23, 2010

I'll second the DICOM support comment


Sign in to add a comment
Powered by Google Project Hosting