Encapsulation of active face of flip-chip device