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 [...]
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 [...]
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 [...]
By Matthijs Kamstra
|
Also posted in Flash
|
Tagged AS3, blog, box2d, box2dFlash, conventions, Flash, flash developer, john lindquist, papervision3d, programmers, syntax
|
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 [...]
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 [...]
By Matthijs Kamstra
|
Also posted in Flash
|
Tagged 2d engine, Actionscript, actionscript 3, AS3, box2d, box2dFlash, Flash, Open Source, physics, physics engine, physics library, tutorial, Tutorials
|
September 3, 2008 – 10:00
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 [...]
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 [...]
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 [...]
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 [...]
By Matthijs Kamstra
|
Also posted in Extending Flash, Flash
|
Tagged array, AS3, Custmm Grumm, Flash, flash 9, illustrator, JSFL, shape, shapes, vector
|
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 [...]