Building latest SVN phystest.fla, broken: Vector to blame

I'm trying to build the phystest.fla SVN rev79, but I get the following error:
b2World.as, line 843: 1046: Type was not found or was not a compile-time constant: Vector.

That line contains: public function RayCastAll(point1:b2Vec2, point2:b2Vec2):Vector.<b2Fixture>

I'm using Flash CS4 which has Vector support and I see that Vector is in the top level package so nothing needs to be imported, so I'm a bit stumped.

Thanks
It does have Vector support, but only if you are compiling with flash 10 as a target. You'll need to check your publish settings.
Also, vector support is a bit experimental at the moment. Measuring the performance, it is significantly worse since I switched to vectors, which disagree with all sources I've read. Any ideas? Maybe my compiler's just too old.

Because of this, and to support Flash 9, you can revert the code back to using arrays using a bundled python script in Build/.
I'm sure you've read the same things I have so I might not have anything new to add. With that in mind, Vector is an actual continuous array in flash that uses sequential memory locations. So iterating over a vector is faster than an array as is random access since it can fit in cache better. However, since its now a true array then it has the problems of such.. like modification causing shifting of elements.

Before flash's array object was really just a dictionary with numerical keys. I'm still not completely familiar with the box2D codebase( I've browsed many classes but I haven't studied it extensively, ) so I'm not sure how arrays were getting used.
I would have thought that if a native c++ array was used in the original codebase then it would have benefited from a conversion to vector instead of a flash array. Maybe there is something else that we both aren't thinking of?

This is interesting to see as a discussion. I was going to send you a PM Boris about how the conversion to vector affected everything and your subsequent reason for providing the revery script... guess I know now!

I might have some time this weekend to help look into it. I want to use the new box2d version in my next personal project so I'm invested in the port doing well. Plus, I like to help the community.
I actually figured the version 10 thing shortly after posting, so sorry for not letting you all know 😳

But thanks for the info nonetheless 🙂

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