My favorites | Sign in
Project Logo
                
Search
for
Updated Nov 06, 2008 by mikechambers
Labels: Featured
Main  

Wiki for ActionScript 3 corelib Project

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:

Authors

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


Comment by ahmemon, Feb 07, 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.gorbatchev, Apr 28, 2008
Comment by drunkencop, 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 bigOsmallm, 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 01, 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 mikechambers, Nov 07, 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 i...@vdeprojects.com, Nov 08, 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.noben, Nov 26, 2008

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

Comment by kkapron, Feb 27, 2009

very interesting project :) thanks :)

Comment by k5angle9527, Mar 09, 2009

nice project, good job

Comment by bruce.123, 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.kadimisetty, Oct 01, 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()and Settings\anilk\workspace\Px2try\src\Px2try.mxml:30?
at Px2try/Px2try_Application1?_creationComplete()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


Sign in to add a comment
Hosted by Google Code