Home Theater Gurus does a great job of showing how to use epoxy primer to seal MDF and then wet-sanding the primer smooth with an orbital sander, cleaning with a tack cloth and then finally finishing the box with base and a top layer.
My experience with painted enclosures: make sure the box is well-braced. A mirror finish will highlight any panel flex.