Category Archives: AS3

Adobe Flash Actionscript 3 (AS3)

Hello box2D – part 2

In my previous post I started with a “Hello world” for box2DFlash. You can find the original here: AS3: Hello Box2D. When you get it working you will not be satisfied: a black swf, with only a trace in the output panel. Today I will make the “Hello world” more visible. Debug_Drawing This the preferred [...]

Hello box2D – part 1

In programming the Hello world is probably the first you will ever make in a new language. In the box2D wiki you can find a “Hello world” in box2DFlash style: AS3: Hello Box2D. Easy as it should be … or is it? This is not the “Hello world” I expected, so I’ll post one that [...]

Box2DFlashAS3 Refactored

If you are a Flex/Flash developer (and not familiar with another programming language), you will agree that the syntax for Box2DFlash is not following the AS3 coding conventions and seems funny. Not that I’m so good at it (seem to have a lot of problem shaking the suffix “_mc”) but other people have the same [...]

Box2DFlashAS3 documentation

In a previous post I started my journey into Flash physics by using Box2D. And I “complained” about the documentation. So I decided to create one for the boys & girls at the box2d Flash AS3 forum using ASDoc….. Someone beat me to the punch: BorisTheBrave created a script to convert the current comment into [...]

AS3 Flash Physics Engine Box2D

I was looking for a physics engine for Flash so I started looking for one… there are a lot of engines… I won’t mention them all, there are enough people who did that already (here, here, here and here) If the list is that big, how to choose? Well I also want to use it [...]

From AS2 to AS3 – Where did it go – attachSound

Where did attachSound go in AS3? It’s almost the same as attachMovie (I already covered attachMovie: read attachMovie post) I was never very good in sound, and I didn’t use it a lot in my applications/animations. That changed with my new job. But for the people that remember attachSound in AS2, this is how its [...]

From AS2 to AS3 – Where did it go – swapDepths

Where did swapDepths () go in AS3? This is what the ActionScript 2.0 Migration has to say about this: ActionScript 2.0  ActionScript 3.0  Comments swapDepths() Method Removed In ActionScript 3.0, you can achieve similar functionality by using the methods of the DisplayObjectContainer class, such as the addChildAt(), setChildIndex(), swapChildren(), and swapChildrenAt() methods. Removed… bummer, so with what [...]

Custmm Grumm – AI 2 Array

Another experiment towards Custmm Grumm. This time my task was to export/import an Illustrator file to Flash… Yeah, yeah; I know: you say “import to stage” … correct! But what I need is the shape converted to code (coordinates in the x-direction and y-direction).. Ha, you stopped grinning! Well the first part is correct. You [...]

Shape 2 Array jsfl

For a project of mine: Custmm Grumm I needed to change a shape into an array, you could say that I needed to change a Illustrator/vector file into code. As far as I know there is no other method then the one I created here with jsfl. To make this happen I imported the .AI [...]

From AS2 to AS3 – Where did it go – attachMovie

Where did attachMovie go in AS3? Once I started using attachMovie instead duplicateMovieClip my AS2 life became a lot easier. What has the ActionScript 2.0 Migration to say about this subject: ActionScript 2.0  ActionScript 3.0  Comments attachMovie() Method Removed In ActionScript 3.0, use addChild() to add child display objects. Removed… wtf? and you can read the documentation [...]