Box2DAS3 PhysTest.swf not working with FDT / Flex *FIX*

by troy on September 17, 2009

Have a project that needs Box2DAS3, but checking out the latest and using it with FDT but the  Main.as which output PhysTest.swf just sat there ghostly and frozen,

Box2dAS3 PhysTest not working with Flex...everything suspended

Box2dAS3 PhysTest not working with Flex...everything suspended

eerily everything in suspended animation, no compiler errors and the same file in FlashCS3 FlashCS4 compiled it fine.  After diggging found the answer here (big thanks to nimodo).

How to Fix PhysTest/Main.as to work with Flex

Step1: Change the compiler options background from white to black (see the above picture)

Step2: In TestBed.Test.as  Change

public var m_timeStep:Number = 1/30;

To:

public var m_timeStep:Number = 1.0/30.0;

Else "Seems, that the win flash compiler makes m_timeStep:Number = 1/30 = 0".  Grr!

Amusingly to me, I am about 2-3 years behind the curve in this area from where I think I should be.  But the great news is I am better equipped to do the Wii Puppetry experiment I've been wanting to do forever.

{ 1 trackback }

Sam Brenner - New Media Design » Box2DAS3 and AIR/Flex not working
October 2, 2009 at 1:04 pm

{ 0 comments… add one now }

Leave a Comment

Previous post:

Next post: