14
Dec/09
0

Open Source ActionScript APIs

As you all might have heard of many opensource ActionScript API's like APE, Away3D, Papervision3D etc.

You can get all of such opensource APIs at one one place: http://actionscriptapis.com/

Nice to see all the API's at one place. Check them out...

8
Dec/09
0

Making particles dragable in APE

As you all know what APE is, I will go directly into what problem i faced when started with it and how i overcame it. First of all, APE source has class named Vector defined in it. When we try to publish any content with APE on Flash CS4/FP 10, there will be a conflict that arises between Vector class of APE and Vector Datatype of Flash Player 10.

So, i had to modify the APE source to rename the Vector class in APE and change the reference of Vector in APE source with the new name. Then i could able to run content with APE on Flash Player 10. You can download the modified source from here.

Making Particle Dragable:

After successful in running the content on Flash Player 10, i wanted to check out how drag works on APE particles. There are separate class files called 'DragableCircleParticle.as' and 'DragableRectangleParticle.as' under Files section of APE Google Group.

Place these .as files under 'source\org\cove\ape' Folder of APE.

Using these classes can make our work easy in making particles dragable.

These dragable particles can be initialized as follows:

DragableCircleParticel(x:Number, y:Number, radius:Number, fixed:Boolean, mass:Number,elasticity:Number, frictio:Number);

DragableRectanlgeParticle(x:Number, y:Number, width:Number, height:Number, rotation:Number, fixed:Boolean, mass:Number, elasticity:Number, friction:Number)

15
Nov/09
2

My First APE Experiment

As you all know APE(ActionScript Physics Engine) is an OpenSource free AS3 2D Physics engine that can be used for Flash and Flex.

APE

 

I just tried APE and made this simple SWF as a beginning into the world of Physics in Flash. You can drag these RectangleParticles which you see in this swf. You can get the SWF here.

12
Nov/09
0

Physics Engines For Flash

As we all know, there are many Physics Engines for Flash now. Each have their own Pros and Cons, but Actionscript 3.0 provides increase in performance compared to Actionscript2.0. Whatever might be your requirement for Physics in your Flash design, we are going to talk about some useful Physics Engines available now for Flash.

ActionScript Physics Engine (APE)

APE

 

 

 

 

 

 

 

 

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 is written and maintained by Alec Cove. The latest version available 0.45 alpha. You can get more info on APE at http://www.cove.org/ape/.