(this one http://www.kerp.net/box2d/)
Basically my problem is that I've created a movie clip in flash called ballSprite
According to the tutorial it should have its own class now
But when trying to use it in an actionscript I get the following error "Call to a possibly undefined method ballSprite."
What do I miss? I did set it as 'export for ActionScript' with class 'ballSprite' and base class 'flash.display.MovieClip'
And nother error I get is "Implicit coercion of a value of type Number to an unrelated type Box2D.Common.Math:b2Vec2."
The code is:
var velVec:b2Vec2 = (initVel.x / SharedVars.ratio, initVel.y / SharedVars.ratio);
initVel is of a point type and ratio is of a number type
I'm using Flash CS4 and Box2D 2.0
I've included the archive with my horribly newbish code in case my explanations aren't enough.
Basically my problem is that I've created a movie clip in flash called ballSprite
According to the tutorial it should have its own class now
But when trying to use it in an actionscript I get the following error "Call to a possibly undefined method ballSprite."
What do I miss? I did set it as 'export for ActionScript' with class 'ballSprite' and base class 'flash.display.MovieClip'
And nother error I get is "Implicit coercion of a value of type Number to an unrelated type Box2D.Common.Math:b2Vec2."
The code is:
var velVec:b2Vec2 = (initVel.x / SharedVars.ratio, initVel.y / SharedVars.ratio);
initVel is of a point type and ratio is of a number type
I'm using Flash CS4 and Box2D 2.0
I've included the archive with my horribly newbish code in case my explanations aren't enough.