How to Create a One Way Platform

Prob an easy question, but can someone step through the code for a one way platform?

I'm looking at the BoxMan and Platform classes from the WorldGame demo, and I don't fully grasp it. :'(

Thanks!
Johnny
I added some comments to the platform class that hopefully will make things clearer:

Code:
      /**
       * Disable contacts that come from below the platform.
       */
      public function handleBeginContact(e:ContactEvent):void {
         if(e.normal) {
            
            // This matrix code is to handle situations where the platform
            // might be upside down or a child of another symbol. Basically we
            // convert the normal of the contact into the coordinate space of the
            // flash movieclip object.
            var m:Matrix = matrix.clone();
            m.tx = 0;
            m.ty = 0;
            m.invert();
            var n:V2 = b2body.GetLocalVector(e.normal);
            var p:Point = m.transformPoint(n.toP());
            
            // If the normal y is = 1 then the contact is coming from
            // below the platform and we should disable it. If the normal y
            // is = -1 then the contact is coming from above the platform and we should
            // keep it enabled. If the sides of the platform are exposed, then a normal somewhere
            // in between -1 and 1 can occur and we need a threshold.
            e.contact.SetEnabled(p.y < -0.8);
         }
      }
      
      // Reset the contact to reevaluate the next time they are touching.
      public function handleEndContact(e:ContactEvent):void {
         e.contact.SetEnabled(true);
      }
As always, thanks!
Johnny

Original thread: https://box2d.org/forum/viewtopic.php?t=7295