folder Layout for bx2D projects

How is the testbed laid out in terms of folder structure, because i've been trying to replicate it's structure and i'm failing miserably...
Hi, yeah that's a little tricky.

The PhysTest .fla loads Main.as which loads the testbed folder, where Test.as defines the world and the other files creates the world. 😀
yea i think i got that part it's just that it doesnt seem to fit...more on this later, im restarting this
GRR! i've hit this error AGAIN!
Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
   at Box2D.Dynamics::b2World/DrawDebugData()
   at Box2D.Dynamics::b2World/Step()
   at HellJump.levels::level/Update()
   at Main/update()

i've uploaded the code, please check it out thanks!
and yes helljump is the name of my project!
Could someone please post post a portion of their project to help me thanks soo much, this is really stalling my problem...
I'm not sure what you're asking Yager - the testbed code is all there for you to see the structure.
yes i know but if i try to replicate it, it get the errors from my second post...
can someone please look at the source and tell me whats wrong?
I got a clean compile of your code by:

1) Making the levels class extend Sprite.
2) Changing your debug code to the standard code that I always use:

Code:
var dbgDraw:b2DebugDraw = new b2DebugDraw();
var dbgSprite:Sprite = new Sprite();
addChild(dbgSprite);
dbgDraw.m_sprite = dbgSprite;
dbgDraw.m_drawScale = 40.0;
dbgDraw.m_fillAlpha = 0.0;
dbgDraw.m_lineThickness = 1.0;
dbgDraw.m_drawFlags = b2DebugDraw.e_shapeBit | b2DebugDraw.e_jointBit;
m_world.SetDebugDraw(dbgDraw);


I also struggled replicating the testbed structure - I found the the helloworld example to be much more newb friendly.

Let us know how you get on.
thanks, making it extend sprites, and using the regular debug draw worked!

Edit; spoke too soon... nothing seems to be showing up when i add a object...

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