[lively-kernel] startStepping error

Patrick Shouse shouse.patrick at gmail.com
Mon Jul 12 03:48:34 CEST 2010


Hi, Folks. I have this script (below) in a TextMorph. When I evaluate each
line it seems to work fine, until the last line which causes this error
"Type Error: Cannot call method 'startSteppingFor' of null". How do I debug
this?

BoxMorph.subclass("LauncherMorph", {
addMorph: function(morph) {
//super(morph);
morph.velocity=pt(10,0);
morph.angularVelocity=Math.PI/16;
morph.moveOriginBy(morph.innerBounds().center());
//morph.stepByVelocities();
morph.startStepping(1000,"stepByVelocities");
}
});
morph1 = new LauncherMorph(new Rectangle(50,100,80,360));
morph1.openInWorld();
morph2 = Morph.makeRectangle(new Rectangle(20,20,40,40));
morph1.addMorph(morph2);

Here's a link to my test page:
http://www.lively-kernel.org/repository/lively-wiki/users/pshouse/test.xhtml

Thanks,
Patrick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.hpi.uni-potsdam.de/archive/lively-kernel/attachments/20100711/13853a0c/attachment.htm 


More information about the lively-kernel mailing list