Armature Problem (picture inside)

just a little question.
I have a 2 segement cube with 2 bones. When i rotate the 2nd bone i get something like this (red).

Can i change settings so i get something like the green line?

Thanx MiGa

I beleive the problem can be solved by changing the weight of the bones. When you assign the vertex group to the armature, there is a setting for weight. Play around with that.

Or, you have to weight paint the mesh.