Referencing a body

Code:
package {

   import Box2DAS.*;
   import Box2DAS.Collision.*;
   import Box2DAS.Collision.Shapes.*;
   import Box2DAS.Common.*;
   import Box2DAS.Dynamics.*;
   import Box2DAS.Dynamics.Contacts.*;
   import Box2DAS.Dynamics.Joints.*;
   import cmodule.Box2D.*;
   import wck.*;
   import shapes.*;
   import misc.*;
   import extras.*;
   import flash.utils.*;
   import flash.events.*;
   import flash.display.*;
   import flash.text.*;
   import flash.geom.*;
   public class World extends wck.World {

      public function World() {
         createBody();
      }
      public function parseInput(e:Event):void {
         trace(c.y);
      }
      function createBody(){
         var c:BodyShape = new Bilog();
         c.x=100;
         c.y=100;
         addChild(c);
         c.listenWhileVisible(this, StepEvent.STEP, parseInput, false, 10);
      }
   }
}


Why I got an error on this...."undefined property" and when I define it above the function public function world it became null object reference.

And please can you point me to any docs about coding in wck...
Thank you very much.
When you come across an error copy paste the whole error output, otherwise it's really hard to guess what happened.

Try not naming your class "World". Adobe has an invisible, undocumented class of the same name for some reason that causes conflict.

The docs:

https://github.com/jesses/wck/wiki
Thanks for your quick reply and the link. But in the WCK wiki/doc it seems I couldn't find other stuff Util.getChildPostAt, Util.addChildAtPos and the like that I can see in the WCK demo codes. I am googling that kind of scripts, can you tell me is that AS3(still consider myself noob) or there something I must learn coding in WCK.

Anyway here is the error.
Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
   at World/parseInput()
   at flash.events::EventDispatcher/dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
   at Box2DAS.Common::b2EventDispatcher/dispatchEvent()
   at Box2DAS.Dynamics::b2World/Step()
   at wck::World/step()
You are defining c in the createBody function but you are trying to use it in your parseInput function... try making it a class variable instead.

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