Posts tagged “ActionScript”.

Charles HTTP Monitor

Here’s a handy tool when developing for web services/amfphp/flash remoting making it a breeze to see what is actually be transferred. Check it out here: http://www.charlesproxy.com

Charles is an HTTP proxy / HTTP monitor / Reverse Proxy that enables a developer to view all of the HTTP traffic between their machine and the Internet. This includes requests, responses and the HTTP headers (which contain the cookies and caching information). Charles can act as a man-in-the-middle for HTTP/SSL communication, enabling you to debug the content of your HTTPS sessions.Charles simulates modem speeds by effectively throttling your bandwidth and introducing latency, so that you can experience an entire website as a modem user might (bandwidth simulator).Charles is especially useful for Adobe Flash developers as you can view the contents of LoadVariables, LoadMovie and XML loads. Charles also has native support for Flash Remoting (AMF0 and AMF3). More about Charles and Flash. Charles is also useful for XML development in web browsers, such as AJAX (Asynchronous Javascript and XML) and XMLHTTP, as it enables you to see the actual XML that is flowing between the client and the server. Charles natively supports JSONJSON-RPC and SOAP; displaying each in a simplified tree format for easy viewing and debugging.

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.

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/

 

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.

Papervision Forward Kinematics

forward kinematics experiment using Papervision3D v2.0 alpha and a Collada 3D model of a robotic arm over at zero point nine blog.

Physics in Flash

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