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
_______________________________________________
lively-kernel mailing list
[email protected]
http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel