Flex Builder

Hi,
I'm having problems importing the source code into my Flex Builder project. I went to properties and added the Box2D folder, but I keep getting errors all over the place on the Hello World.

Severity and Description Path Resource Location Creation Time Id
1046: Type was not found or was not a compile-time constant: b2AABB. Tumble Tumble.as line 23 1203438894531 3642
1046: Type was not found or was not a compile-time constant: b2Body. Tumble Tumble.as line 99 1203438894546 3658
1046: Type was not found or was not a compile-time constant: b2BodyDef. Tumble Tumble.as line 39 1203438894531 3644
1046: Type was not found or was not a compile-time constant: b2BoxDef. Tumble Tumble.as line 40 1203438894531 3645
1046: Type was not found or was not a compile-time constant: b2CircleDef. Tumble Tumble.as line 41 1203438894531 3646
1046: Type was not found or was not a compile-time constant: b2Vec2. Tumble Tumble.as line 28 1203438894531 3643
1046: Type was not found or was not a compile-time constant: b2World. Tumble Tumble.as line 109 1203438894531 3641


Basically it's acting like it can't find any of the libraries... What's very strange is that autocomplete is working but it won't compile.


Thanks in advance, I can't wait to start playing around with it!
-Danny

P.S.: I would just like to give a suggestion of releasing SWC files as I (along with other developers) often encounter fewer problems with importing SWC's
I'm using Flex Builder 2 with no problems, are you sure you're importing everything correctly? I'd like to see what one of your files looks like, because it must be some problem with your packages or imports. Your folders that you have things in have to match up with package names and such too.
I just copied the Box2D folder from the zip onto my hard drive. Went to my project properties and added source folder Box2D.
Are you starting from the testbed code? If you're just jumping right into a new project from scratch you might want to have a look at it to see how the includes are done. Also I think originally the AS3 port wasn't really set up to compile cleanly with Flex Builder, but I remember it just being warnings for types and stuff. This was cleaned up later, and I assume it was updated on the Box2D Flash page, but I'm not sure. Are you able to compile the testbed code ok?
The problem might be that you're adding the folder 'Box2D' rather than its parent folder.

'Box2D' is actually a package, so Flex has to be able to find 'Box2D', not just its sub folders.

Hope that makes sense.
-Matt
Wow I'm an idiot. Thanks that was it.

Original thread: https://box2d.org/forum/viewtopic.php?t=446