here’s my switch. im getting 1104: invalid xml name(and as far as i know i have no xml in there)
and a bunch of 1084:* errors.
any ideas out there???
public function hitTesty()
{
var collisions:Array = acollisionList.checkCollisions();
if(collisions.length)
{
switch(true)
{
case (ship.rotation>=315 && <=360):
ship.rotation=0;
break;
case (ship.rotation>=0 && <=45):
ship.rotation=0;
break;
case (ship.rotation>45 && <=135):
ship.rotation=90;
break;
case (ship.rotation>=135 && <=225):
ship.rotation=180;
break;
case (ship.rotation>=225 && <=315)5:
ship.rotation=270;
break;
}
}
shipBounce1(ship,rock);
}