I think I know the play of which he speaks. Foul definitely occurred, and I believe so did the whistle, while the ball was in the air. Specifically, kid shoots a three, offensive player gets whistled for an offensive foul while jockeying for position with the ball on the way to the basket.