Short code review

Hello,

Can you tell me why my code doesn’t work?
The diff value does not get changed even though the _xmouse value (position of mouse on the stage) is correctly tracing. no matter wherever i put the mouse, diff always equals to maxSpeed;

[AS]
var maxSpeed:Number = 67;
var speed1:Number = Math.round(maxSpeed/3);
var speed2:Number = Math.round(maxSpeed/2);
onEnterFrame = function()
{
var diff:Number = 0;
if (0<_xmouse<100)
{
diff = maxSpeed;
}
else if (100<_xmouse<200)
{
diff = speed2;
}
else if (600<_xmouse<700)
{
diff = -speed2;
}
else if (700<_xmouse<800)
{
diff = -maxSpeed;
}
else
{
diff = 0;
}
var currentPosX:Number = _root.stripContainer._x;
newPosX = currentPosX+diff;

};

[/AS]

i’ve been stumbling on this for 2 hours, i must be blind…

thanks a lot