Im trying to pass a string from my view class that tells the second object in a collision.
I’ve gotten as far as the function in my CollisionController class CollisionCatcher()
it reads like this
public function collisionCatcher(colObj:String)
{
trace ("collisionController colObj= "+colObj);
if(colObj== "object Rocks")
{
trace("collisionValueTrue");
_model.yVel=_model.yVel*-1;
}
}
the trace produces this:
collisionController colObj= [object Rocks]
but i still can’t get to the “collisionValueTrue” trace
can anyone see the problem??