ActionScript 3

ActionScript is a scripting language based on ECMAScript (JavaScript), used primarily for the development of websites and software using the Adobe Flash Player platform (in the form of SWF files embedded into Web pages). Originally developed by Macromedia, the language is now owned by Adobe (which acquired Macromedia in 2005), which continues its development. ActionScript was initially designed for controlling simple 2D vector animations made in Adobe Flash (formerly Macromedia Flash). Later versions added functionality allowing for the creation of Web-based games and rich Internet applications with streaming media (such as video and audio).


TweenLite

TweenLite is a Lightweight (2kb) and FAST Tweening Engine for ActionScript 3. I use this myself (Eric Dolecki) and its really come along. It is fast, it is lightweight, and the recent improvements make it my stalwart tweening engine now. Seriously, it kicks ass and I've tried many engines.

AS3 YouTube Library

The YouTube API provides an ActionScript 3.0 interface to search videos from YouTube.
YouTube at Google Code

AS3 Syndication Library

Use the syndication library to parse Atom and all versions of RSS easily. This library hides the differences between the formats so you can parse any type of feed without having to know what kind of feed it is.

For the latest and greatest version of this library, we recommend pulling the source using SVN.
RSS at Google Code

AS3 Flickr

The Flickr library is an ActionScript 3.0 API for the online photo sharing application, Flickr. It provides access to the entire Flickr API.
Flickr at Google Code

as3corelib

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, Image encoders, and JSON serialization as well as general String, Number and Date APIs.

For the latest and greatest version of as3corelib, we recommend pulling the source using SVN.
as3corelib at Google Code

AS3 BulkLoader

Link. From stimuli: Controlling loading is tedious, error prone, and each projects has such specific requirements that you end up rewriting loading code. A lot. In my last project I spent 4 hours debugging download code and promised my self I would solve this annoyance once and for all. So in the best "let me be lazy" fashion, I decided to write my final loading code.

Everybody has been there, and there are many classes around to manage loading, but I've never found one that was complete, flexible and easy enough to use. AS3 has created some kind of loading hell: so many classes to import and understand, a plethora of listeners, the need for error handling and the new API objects (Bitmap, DisplayObject) have added more corner cases to remember. Worse still, videos are still left in some twisted logic maze.

Example:

var loader : BulkLoader = new BulkLoader("main");
loader.add("bg.jpg");
loader.add("config.xml");
loader.add("soundtrack.mp3");
loader.add("intro.flv");
loader.addEventListener(BulkLoader.PROGRESS, onProgress);
loader.addEventListener(BulkLoader.COMPLETE, onComplete);
loader.start();

function onProgress(evt : BulkProgressEvent) : void{
    trace(evt.percentLoaded);
}

function onComplete(evt : Event) : void{
    var bgBitmap = loader.getBitmap("bg.jpg");
    addChild(bgBitmap);
    var video : Video = new Video();
    video.attachNetStream(loader.getNetStream("intro.flv"));
    parseConfig(loader.getXML("config.xml"));
}

AS3 OLAP

Link. Sreenivas Ramaswamy's blog code to create a OLAP cube in ActionScript 3.0.

private var salesCube:OLAPCube;
 
private function createCube():void
{
 salesCube = new OLAPCube();
 
 var dim1:OLAPDimension = new OLAPDimension("SalesData");
 
 //add attributes to the dimension
 var attr1:OLAPAttribute = new OLAPAttribute("Region");
 attr1.dataField = "region";
 
 var attr2:OLAPAttribute = new OLAPAttribute("Market");
 attr2.dataField = "market";
 
 var attr3:OLAPAttribute = new OLAPAttribute("Store");
 attr3.dataField = "store";
 
 var attr4:OLAPAttribute = new OLAPAttribute("LineOfBusiness");
 attr4.dataField = "line_of_business";
 
 var attr5:OLAPAttribute = new OLAPAttribute("Model");
 attr5.dataField = "model";
 
 dim1.attributes = new ArrayCollection([ attr1, attr2, attr3, attr4, attr5 ]);
 
 //add a user defined hierarchy   
 var regionHierarchy:OLAPHierarchy = new OLAPHierarchy("Region-Market-Store");
 
 //define the levels of the hierarchy
 var level1:OLAPLevel = new OLAPLevel();
 level1.attributeName = "Region" ;
 
 var level2:OLAPLevel = new OLAPLevel();
 level2.attributeName = "Market" ;
 
 var level3:OLAPLevel = new OLAPLevel();
 level3.attributeName = "Store" ;
 
 var level4:OLAPLevel = new OLAPLevel();
 level4.attributeName = "LineOfBusiness" ;
 
 var level5:OLAPLevel = new OLAPLevel();
 level5.attributeName = "Model" ;
 
  //add levels to the hierarchy
  regionHierarchy.levels = new ArrayCollection([ level1, level2, level3, level4, level5 ]);
 
  //add hierarchy to the dim
 dim1.hierarchies = new ArrayCollection([ regionHierarchy ]);
 
 //more dimensions can be defined here
 
 var measure:OLAPMeasure = new OLAPMeasure("Revenue");
 measure.dataField = "revenue" ;
 
 //more measures can be defined here
 
 //add the dimensions and measures to the cube.
 salesCube.elements = [ dim1, measure ];
}
page tags: as3 syndication youtube
page_revision: 13, last_edited: 1207411339|%e %b %Y, %H:%M %Z (%O ago)
Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License