Moving to CS5

I'm about to make the jump to Flash CS5, and trying out my WCK project. I get the following totally nonsensical compile error...

Quote:
1061: Call to a possibly undefined method addEventListener through a reference with static type World.


...in response to this line of code:

Code:
world.addEventListener(StepEvent.STEP, sync, false, 0, true);


Eh??? So what it's telling me is that the World class, a descendant of MovieClip and thus EventDispatcher, does not define addEventListener() ...which of course is total rubbish. I've got nothing else to go on here, and wondered if anybody else has seen this.
CS5 has some weird hidden classes that are part of a half-finished built in physics engine. Those classes conflict with the WCK classes. So you'll have to declare variables like so:

var world:wck.World;

instead of just:

var world:World;
Oh for crying out loud! 😈 What a complete pain in the a$$... a situation Adobe really ought to have thought to avoid. I mean it's not as if they're writing the first ever Flash physics engine!

I'd been noticing recently that FlashDevelop suddenly started inserting "wck." in front of class names, which I'd found annoying and so I uh... fixed. 🙄

[Half an hour later...] OK. That didn't take as long as I was afraid it would. I'm calmer now my project is back up and running. Thanks Jesse.

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