Dan got 'em right.
#1 is illegal. It's a traveling violation in the NBA. If you'd asked about high school or college the answer would be that it is legal. And you would owe Tony five dollars.
#2 is legal. It's specifically covered in play 225 (on page 46) in the NBA Questions and Answers. That's the NBA's version of a case book. And again, in HS or NCAA, it's legal.
Chuck