Posts categorized “ActionScript”.

Play Next FLV

Don’t know why this is always a hassle, but here is a simple way to play .flv’s one after another (actionscript 3.0). The NetStatusEvent.COMPLETE is oddly inconsistent.

ns.addEventListener(NetStatusEvent.NET_STATUS, detectEnd);

function detectEnd(myevent:NetStatusEvent):void {

switch (myevent.info.code) {

case “NetStream.Play.Stop”:

trace(”stop”);

//play video

ns.play(”video/vide.flv”);

break;

}

}

2D ActionScript 3.0 Physics Engine

2D ActionScript 3.0 Physics Engine

 

APE (Actionscript Physics Engine) is a free AS3 open source 2D physics engine for use in Flash and Flex, released under the MIT License. APE by Alec Cove

ActionScript 3D (pv3d-like) Data Visualizations

Very interesting  3d visualizations here over at http://www.bestiario.org using their own 3D framework.

Papervision Typography

This is kinda(no really) buggy, and not ready for primetime… but… the potential.

http://www.typesql.com/

The actual concept is weak as well - just check out the UI - angles/transitions/etc.

Points on a Sphere (PV3D)

Handy snippet from massivecube for distributing exact amount of points on the surface of a sphere.

http://blog.massivecube.com/?p=9

Tweener

My favorite tweener engine for Flash - in both AS2 and 3. Simple, clean and fast.

Docs are here:

http://hosted.zeh.com.br/tweener/docs/en-us/

 

Wii Flash

Combine the Wii Controler and Flash by using the wiiFlash api this great work by Joa Ebert and Thibault Imbert

The WiiFlash project is divided into two parts:

  • WiiFlash Server (C++ or .NET server that handles Wiimote communication)
  • WiiFlash ActionScript API (SWC component)

Check it out:  http://wiiflash.bytearray.org/

Flare Visualization Toolkit

Flare is a collection of ActionScript 3 classes for building a wide variety of interactive visualizations. For example, flare can be used to build basic charts, complex animations, network diagrams, treemaps, and more. Flare is written in the ActionScript 3 programming language and can be used to build visualizations that run on the web in the Adobe Flash Player. Flare applications can be built using the free Adobe Flex SDK or Adobe’s Flex Builder IDE. Flare is based on prefuse, a full-featured visualization toolkit written in Java. 

And view some other visualization api’s here - more links here at reddit

Full Screen Flash

Nice tutorial of full screen flash setup here over at gotoandlearn.

Physics in Flash

Physics engine for flash in 2D - Box2DFlashAS3 is an open source port of Erin Catto’s powerful c++ physics library.