Box2D Forums

It is currently Wed May 22, 2013 4:45 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Moving to CS5
PostPosted: Sat Feb 26, 2011 11:03 am 
Offline

Joined: Mon Apr 07, 2008 3:06 am
Posts: 99
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.


Top
 Profile  
 
 Post subject: Re: Moving to CS5
PostPosted: Sat Feb 26, 2011 11:34 am 
Offline

Joined: Fri Dec 14, 2007 8:07 pm
Posts: 913
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;


Top
 Profile  
 
 Post subject: Re: Moving to CS5
PostPosted: Sat Feb 26, 2011 4:08 pm 
Offline

Joined: Mon Apr 07, 2008 3:06 am
Posts: 99
Oh for crying out loud! :evil: 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. :roll:

[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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group